From: Sylvestre Ledru Date: Thu, 25 Sep 2014 10:57:00 +0000 (+0000) Subject: Details that -debug-only is not available when LLVM is built with --enable-optimized X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cabd41e17c509873c680f06ec025bb04bb400237;p=oota-llvm.git Details that -debug-only is not available when LLVM is built with --enable-optimized git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218447 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/ProgrammersManual.rst b/docs/ProgrammersManual.rst index b06d2ebc976..a3a20f3824c 100644 --- a/docs/ProgrammersManual.rst +++ b/docs/ProgrammersManual.rst @@ -425,6 +425,8 @@ 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. +For performance reasons, -debug-only is not available in optimized build (``--enable-optimized``) of LLVM. + The ``DEBUG_WITH_TYPE`` macro is also available for situations where you would like to set ``DEBUG_TYPE``, but only for one specific ``DEBUG`` statement. It takes an additional first parameter, which is the type to use. For example, the