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