[lld] r181640 - [lld] Document about how to enable debug output.

Rui Ueyama ruiu at google.com
Fri May 10 15:19:28 PDT 2013


Author: ruiu
Date: Fri May 10 17:19:28 2013
New Revision: 181640

URL: http://llvm.org/viewvc/llvm-project?rev=181640&view=rev
Log:
[lld] Document about how to enable debug output.

Modified:
    lld/trunk/docs/development.rst

Modified: lld/trunk/docs/development.rst
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/docs/development.rst?rev=181640&r1=181639&r2=181640&view=diff
==============================================================================
--- lld/trunk/docs/development.rst (original)
+++ lld/trunk/docs/development.rst Fri May 10 17:19:28 2013
@@ -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
 -------------





More information about the llvm-commits mailing list