DEBUG_WITH_TYPE macro ‐ This macro should be used by passes to emit debug information. If the '‐debug' option is specified on the commandline, and if this is a debug build, then the code specified as the option to the macro will be executed. Otherwise it will not be. Example:

Synopsis

Declared in <llvm/Support/Debug.h>

#define DEBUG_WITH_TYPE(TYPE, …​)

Description

DEBUG_WITH_TYPE("bitset", dbgs() << "Bitset contains: " << Bitset << "n");

This will emit the debug information if ‐debug is present, and ‐debug‐only is not specified, or is specified as "bitset".

Created with MrDocs