// code, without it being enabled all of the time, and without having to add
// command line options to enable it.
//
// code, without it being enabled all of the time, and without having to add
// command line options to enable it.
//
-// When compiling in release mode, the -debug-* options and all code in DEBUG()
-// statements disappears, so it does not effect the runtime of the code.
+// When compiling without assertions, the -debug-* options and all code in
+// DEBUG() statements disappears, so it does not affect the runtime of the code.
//until program termination.
static cl::opt<unsigned>
DebugBufferSize("debug-buffer-size",
//until program termination.
static cl::opt<unsigned>
DebugBufferSize("debug-buffer-size",
"until program termination. "
"[default 0 -- immediate print-out]"),
cl::Hidden,
cl::init(0));
static std::string CurrentDebugType;
"until program termination. "
"[default 0 -- immediate print-out]"),
cl::Hidden,
cl::init(0));
static std::string CurrentDebugType;
static cl::opt<DebugOnlyOpt, true, cl::parser<std::string> >
DebugOnly("debug-only", cl::desc("Enable a specific type of debug output"),
static cl::opt<DebugOnlyOpt, true, cl::parser<std::string> >
DebugOnly("debug-only", cl::desc("Enable a specific type of debug output"),
/// option were specified. Note that DebugFlag also needs to be set to true for
/// debug output to be produced.
///
/// option were specified. Note that DebugFlag also needs to be set to true for
/// debug output to be produced.
///
if (EnableDebugBuffering && DebugFlag && DebugBufferSize != 0)
// TODO: Add a handler for SIGUSER1-type signals so the user can
// force a debug dump.
if (EnableDebugBuffering && DebugFlag && DebugBufferSize != 0)
// TODO: Add a handler for SIGUSER1-type signals so the user can
// force a debug dump.
// Otherwise we've already set the debug stream buffer size to
// zero, disabling buffering so it will output directly to errs().
}
// Otherwise we've already set the debug stream buffer size to
// zero, disabling buffering so it will output directly to errs().
}