LLVM 20.0.0git
Namespaces | Functions | Variables
Debug.cpp File Reference
#include "llvm/Support/Debug.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/Signals.h"
#include "llvm/Support/circular_raw_ostream.h"
#include "llvm/Support/raw_ostream.h"
#include "DebugOptions.h"

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 

Functions

bool llvm::isCurrentDebugType (const char *Type)
 isCurrentDebugType - Return true if the specified string is the debug type specified on the command line, or if none was specified on the command line with the -debug-only=X option.
 
void llvm::setCurrentDebugTypes (const char **Types, unsigned Count)
 setCurrentDebugTypes - Set the current debug type, as if the -debug-only=X,Y,Z option were specified.
 
void llvm::setCurrentDebugType (const char *Type)
 setCurrentDebugType - Set the current debug type, as if the -debug-only=X option were specified.
 
static void debug_user_sig_handler (void *Cookie)
 

Variables

static ManagedStatic< std::vector< std::string > > llvm::CurrentDebugType
 
static ManagedStatic< cl::opt< bool, true >, CreateDebug > Debug
 
static ManagedStatic< cl::opt< unsigned >, CreateDebugBufferSize > DebugBufferSize
 
static DebugOnlyOpt DebugOnlyOptLoc
 
static ManagedStatic< cl::opt< DebugOnlyOpt, true, cl::parser< std::string > >, CreateDebugOnly > DebugOnly
 

Function Documentation

◆ debug_user_sig_handler()

static void debug_user_sig_handler ( void *  Cookie)
static

Definition at line 152 of file Debug.cpp.

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

Referenced by llvm::dbgs().

Variable Documentation

◆ Debug

ManagedStatic<cl::opt<bool, true>, CreateDebug> Debug
static

Definition at line 108 of file Debug.cpp.

Referenced by llvm::initDebugOptions().

◆ DebugBufferSize

ManagedStatic<cl::opt<unsigned>, CreateDebugBufferSize> DebugBufferSize
static

Definition at line 109 of file Debug.cpp.

Referenced by llvm::dbgs(), and llvm::initDebugOptions().

◆ DebugOnly

ManagedStatic<cl::opt<DebugOnlyOpt, true, cl::parser<std::string> >, CreateDebugOnly> DebugOnly
static

Definition at line 143 of file Debug.cpp.

Referenced by llvm::initDebugOptions().

◆ DebugOnlyOptLoc

DebugOnlyOpt DebugOnlyOptLoc
static

Definition at line 126 of file Debug.cpp.