2012-04-06 23:47:34 +00:00
|
|
|
.. _development:
|
|
|
|
|
|
|
|
|
|
Development
|
|
|
|
|
===========
|
|
|
|
|
|
2017-02-24 04:31:08 +00:00
|
|
|
Note: this document discuss Mach-O port of LLD. For ELF and COFF,
|
|
|
|
|
see :doc:`index`.
|
|
|
|
|
|
2020-03-22 22:42:03 +01:00
|
|
|
lld is developed as part of the `LLVM <https://llvm.org>`_ project.
|
2012-04-06 23:47:34 +00:00
|
|
|
|
2012-06-12 22:43:35 +00:00
|
|
|
Creating a Reader
|
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
|
|
See the :ref:`Creating a Reader <Readers>` guide.
|
|
|
|
|
|
|
|
|
|
|
2013-01-15 02:00:59 +00:00
|
|
|
Modifying the Driver
|
|
|
|
|
--------------------
|
|
|
|
|
|
|
|
|
|
See :doc:`Driver`.
|
|
|
|
|
|
|
|
|
|
|
2013-05-10 22:19:28 +00:00
|
|
|
Debugging
|
|
|
|
|
---------
|
|
|
|
|
|
2013-05-11 00:26:26 +00:00
|
|
|
You can run lld with ``-mllvm -debug`` command line options to enable debugging
|
2013-05-10 22:19:28 +00:00
|
|
|
printouts. If you want to enable debug information for some specific pass, you
|
2013-05-11 00:26:26 +00:00
|
|
|
can run it with ``-mllvm '-debug-only=<pass>'``, where pass is a name used in
|
2013-05-10 22:19:28 +00:00
|
|
|
the ``DEBUG_WITH_TYPE()`` macro.
|
|
|
|
|
|
|
|
|
|
|
2012-06-12 22:43:35 +00:00
|
|
|
|
|
|
|
|
Documentation
|
|
|
|
|
-------------
|
2012-04-06 23:47:34 +00:00
|
|
|
|
|
|
|
|
The project documentation is written in reStructuredText and generated using the
|
|
|
|
|
`Sphinx <http://sphinx.pocoo.org/>`_ documentation generator. For more
|
|
|
|
|
information on writing documentation for the project, see the
|
|
|
|
|
:ref:`sphinx_intro`.
|
2012-06-18 20:24:47 +00:00
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
|
:hidden:
|
|
|
|
|
|
|
|
|
|
Readers
|
2013-01-15 02:00:59 +00:00
|
|
|
Driver
|