X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=docs%2FProgrammersManual.rst;h=665e30aeb676206eaec5f0c700865a330fd44f2e;hb=6e961aa243f223ddb704ce708056238d7c1d7e24;hp=44f76fef8f1f5cb8719dc62d90151c01e40aa413;hpb=8b9371cdcf72e0ae62dfd2a1fb9c84536543fe5f;p=oota-llvm.git diff --git a/docs/ProgrammersManual.rst b/docs/ProgrammersManual.rst index 44f76fef8f1..665e30aeb67 100644 --- a/docs/ProgrammersManual.rst +++ b/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.