summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/docs/development.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/lld/docs/development.rst b/lld/docs/development.rst
index 4716ba1795d..4a0af414155 100644
--- a/lld/docs/development.rst
+++ b/lld/docs/development.rst
@@ -22,6 +22,15 @@ Modifying the Driver
See :doc:`Driver`.
+Debugging
+---------
+
+You can run lld with ``-mllvm=-debug`` command line option to enable debugging
+printouts. If you want to enable debug information for some specific pass, you
+can run it with ``-mllvm='-debug-only <pass>'``, where pass is a name used in
+the ``DEBUG_WITH_TYPE()`` macro.
+
+
Documentation
-------------
OpenPOWER on IntegriCloud