Lines Matching full:debug
1 //===-- Debug.cpp - An easy way to add debug output to your code ----------===//
14 // In particular, just wrap your code with the DEBUG() macro, and it will be
15 // enabled automatically if you specify '-debug' on the command-line.
17 // that your debug code belongs to class "foo". Then, on the command line, you
18 // can specify '-debug-only=foo' to enable JUST the debug information for the
21 // When compiling without assertions, the -debug-* options and all code in
22 // DEBUG() statements disappears, so it does not affect the runtime of the code.
26 #include "llvm/Support/Debug.h"
39 // built without NDEBUG can depend on via the llvm/Support/Debug.h header.
41 /// Exported boolean set by the -debug option.
46 /// Return true if the specified string is the debug type
48 /// with the -debug-only=X option.
61 /// Set the current debug type, as if the -debug-only=X
63 /// debug output to be produced.
72 // All Debug.h functionality is a no-op in NDEBUG mode.
75 // -debug - Command line option to enable the DEBUG statements in the passes.
76 // This flag may only be enabled in debug builds.
78 Debug("debug", cl::desc("Enable debug output"), cl::Hidden,
81 // -debug-buffer-size - Buffer the last N characters of debug output
84 DebugBufferSize("debug-buffer-size",
85 cl::desc("Buffer the last N characters of debug output "
107 DebugOnly("debug-only", cl::desc("Enable a specific type of debug output"),
108 cl::Hidden, cl::ZeroOrMore, cl::value_desc("debug string"),
111 // Signal handlers - dump debug output on termination.
114 // know that debug mode is enabled and dbgs() really is a
122 /// dbgs - Return a circular-buffered debug stream.
129 strm(errs(), "*** Debug Log Output ***\n",
133 // force a debug dump.
135 // Otherwise we've already set the debug stream buffer size to