summaryrefslogtreecommitdiffstats
path: root/lld/docs/development.rst
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2013-05-10 22:19:28 +0000
committerRui Ueyama <ruiu@google.com>2013-05-10 22:19:28 +0000
commiteaadec3a3918772601aac0a592bc6cc92c878c8e (patch)
tree4498b2dfaef037db8d3f01b58a386221378ab8bd /lld/docs/development.rst
parent6ac4ba23fdfc3ea91e21372b73a4f6e2f3410a39 (diff)
downloadbcm5719-llvm-eaadec3a3918772601aac0a592bc6cc92c878c8e.tar.gz
bcm5719-llvm-eaadec3a3918772601aac0a592bc6cc92c878c8e.zip
[lld] Document about how to enable debug output.
llvm-svn: 181640
Diffstat (limited to 'lld/docs/development.rst')
-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