RAII helper that emits an #ifdef / #undef / #endif scope.

Synopsis

Declared in <llvm/TableGen/CodeGenHelpers.h>

class IfDefEmitter;

Description

LateUndef controls whether the undef is emitted at the start of the scope (false) or at the end of the scope (true).

Member Functions

Name

Description

IfDefEmitter [constructor]

Constructors

~IfDefEmitter [destructor]

Emit the closing #undef (when deferred) and #endif for the macro.

operator= [deleted]

Copy assignment is deleted; each emitter owns a unique stream scope.

Created with MrDocs