28 #ifndef LLVM_SUPPORT_DEBUG_H
29 #define LLVM_SUPPORT_DEBUG_H
62 #define DEBUG_WITH_TYPE(TYPE, X) \
63 do { if (::llvm::DebugFlag && ::llvm::isCurrentDebugType(TYPE)) { X; } \
67 #define isCurrentDebugType(X) (false)
68 #define setCurrentDebugType(X)
69 #define DEBUG_WITH_TYPE(TYPE, X) do { } while (0)
92 #define DEBUG(X) DEBUG_WITH_TYPE(DEBUG_TYPE, X)
void setCurrentDebugType(const char *Type)
setCurrentDebugType - Set the current debug type, as if the -debug-only=X option were specified...
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
bool EnableDebugBuffering
EnableDebugBuffering - This defaults to false.
bool DebugFlag
DebugFlag - This boolean is set to true if the '-debug' command line option is specified.
bool isCurrentDebugType(const char *Type)
isCurrentDebugType - Return true if the specified string is the debug type specified on the command l...