33 #undef isCurrentDebugType
34 #undef setCurrentDebugType
85 cl::desc(
"Buffer the last N characters of debug output "
86 "until program termination. "
87 "[default 0 -- immediate print-out]"),
94 void operator=(
const std::string &Val)
const {
125 static struct dbgstream {
129 strm(
errs(),
"*** Debug Log Output ***\n",
raw_ostream & errs()
This returns a reference to a raw_ostream for standard error.
circular_raw_ostream - A raw_ostream which can save its data to a circular buffer, or can pass it through directly to an underlying stream if specified with a buffer of zero.
static cl::opt< DebugOnlyOpt, true, cl::parser< std::string > > DebugOnly("debug-only", cl::desc("Enable a specific type of debug output"), cl::Hidden, cl::ZeroOrMore, cl::value_desc("debug string"), cl::location(DebugOnlyOptLoc), cl::ValueRequired)
static DebugOnlyOpt DebugOnlyOptLoc
void setCurrentDebugType(const char *Type)
setCurrentDebugType - Set the current debug type, as if the -debug-only=X option were specified...
initializer< Ty > init(const Ty &Val)
static cl::opt< unsigned > DebugBufferSize("debug-buffer-size", cl::desc("Buffer the last N characters of debug output ""until program termination. ""[default 0 -- immediate print-out]"), cl::Hidden, cl::init(0))
The instances of the Type class are immutable: once they are created, they are never changed...
void flushBufferWithBanner()
flushBufferWithBanner - Force output of the buffer along with a small header.
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
static ManagedStatic< std::vector< std::string > > CurrentDebugType
bool EnableDebugBuffering
EnableDebugBuffering - This defaults to false.
static cl::opt< bool, true > Debug("debug", cl::desc("Enable debug output"), cl::Hidden, cl::location(DebugFlag))
This class implements an extremely fast bulk output stream that can only output to a stream...
static void debug_user_sig_handler(void *Cookie)
ManagedStatic - This transparently changes the behavior of global statics to be lazily constructed on...
LocationClass< Ty > location(Ty &L)
bool DebugFlag
DebugFlag - This boolean is set to true if the '-debug' command line option is specified.
void AddSignalHandler(void(*FnPtr)(void *), void *Cookie)
AddSignalHandler - Add a function to be called when an abort/kill signal is delivered to the process...
bool isCurrentDebugType(const char *Type)
isCurrentDebugType - Return true if the specified string is the debug type specified on the command l...