aboutsummaryrefslogtreecommitdiff
path: root/llvm/docs/ProgrammersManual.rst
diff options
context:
space:
mode:
authorChristof Douma <Christof.Douma@arm.com>2016-01-12 10:23:13 +0000
committerChristof Douma <Christof.Douma@arm.com>2016-01-12 10:23:13 +0000
commitf617e678e90c85a1fc733ad8ce93ffc51cfd4f72 (patch)
tree173f83a8607d10758f511836715680f0f24f0983 /llvm/docs/ProgrammersManual.rst
parent49982f577322ca1613d4c3f379d30514cbae009d (diff)
downloadllvm-f617e678e90c85a1fc733ad8ce93ffc51cfd4f72.zip
llvm-f617e678e90c85a1fc733ad8ce93ffc51cfd4f72.tar.gz
llvm-f617e678e90c85a1fc733ad8ce93ffc51cfd4f72.tar.bz2
The --debug-only option now takes a comma separated list of debug types.
This means that the DEBUG_TYPE cannot take a comma anymore. All existing passes conform to this rule. Differential Revision: http://reviews.llvm.org/D15645 llvm-svn: 257466
Diffstat (limited to 'llvm/docs/ProgrammersManual.rst')
-rw-r--r--llvm/docs/ProgrammersManual.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/docs/ProgrammersManual.rst b/llvm/docs/ProgrammersManual.rst
index 44f76fe..665e30a 100644
--- a/llvm/docs/ProgrammersManual.rst
+++ b/llvm/docs/ProgrammersManual.rst
@@ -408,6 +408,9 @@ Then you can run your pass like this:
'foo' debug type
$ opt < a.bc > /dev/null -mypass -debug-only=bar
'bar' debug type
+ $ opt < a.bc > /dev/null -mypass -debug-only=foo,bar
+ 'foo' debug type
+ 'bar' debug type
Of course, in practice, you should only set ``DEBUG_TYPE`` at the top of a file,
to specify the debug type for the entire module. Be careful that you only do
@@ -417,7 +420,8 @@ system in place to ensure that names do not conflict. If two different modules
use the same string, they will all be turned on when the name is specified.
This allows, for example, all debug information for instruction scheduling to be
enabled with ``-debug-only=InstrSched``, even if the source lives in multiple
-files.
+files. The name must not include a comma (,) as that is used to seperate the
+arguments of the ``-debug-only`` option.
For performance reasons, -debug-only is not available in optimized build
(``--enable-optimized``) of LLVM.