Execute VA_ARGS when ‐debug is enabled for TYPE.

Synopsis

Declared in <llvm/Support/Debug.h>

#define DEBUG_WITH_TYPE(TYPE, …​)

Description

This macro should be used by passes to emit debug information. If the '‐debug' option is specified on the command line, 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:

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".

Parameters

Name

Description

TYPE

Debug type name that must match the ‐debug‐only filter.

Created with MrDocs