LLVM API Documentation

Functions | Variables
Debug.cpp File Reference
#include "llvm/Support/Debug.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Signals.h"
#include "llvm/Support/circular_raw_ostream.h"
#include "llvm/Support/ManagedStatic.h"
Include dependency graph for Debug.cpp:

Go to the source code of this file.

Functions

static void debug_user_sig_handler (void *Cookie)

Variables

static cl::opt< bool, trueDebug ("debug", cl::desc("Enable debug output"), cl::Hidden, cl::location(DebugFlag))
static cl::opt< unsignedDebugBufferSize ("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))
static ManagedStatic< std::string > CurrentDebugType
static DebugOnlyOpt DebugOnlyOptLoc
static cl::opt< DebugOnlyOpt,
true, cl::parser< std::string > > 
DebugOnly ("debug-only", cl::desc("Enable a specific type of debug output"), cl::Hidden, cl::value_desc("debug string"), cl::location(DebugOnlyOptLoc), cl::ValueRequired)

Function Documentation

static void debug_user_sig_handler ( void *  Cookie) [static]

Definition at line 75 of file Debug.cpp.

References llvm::dbgs(), and llvm::circular_raw_ostream::flushBufferWithBanner().

Referenced by llvm::dbgs().


Variable Documentation

ManagedStatic<std::string> CurrentDebugType [static]

Definition at line 54 of file Debug.cpp.

Referenced by llvm::isCurrentDebugType(), and llvm::setCurrentDebugType().

cl::opt<bool, true> Debug("debug", cl::desc("Enable debug output"), cl::Hidden, cl::location(DebugFlag)) [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)) [static]

Referenced by llvm::dbgs().

cl::opt<DebugOnlyOpt, true, cl::parser<std::string> > DebugOnly("debug-only", cl::desc("Enable a specific type of debug output"), cl::Hidden, cl::value_desc("debug string"), cl::location(DebugOnlyOptLoc), cl::ValueRequired) [static]
DebugOnlyOpt DebugOnlyOptLoc [static]

Definition at line 67 of file Debug.cpp.