Base class for debug information backends. Common functionality related to tracking which variables and scopes are alive at a given PC live here.

Synopsis

Declared in <llvm/CodeGen/DebugHandlerBase.h>

class DebugHandlerBase
    : public AsmPrinterHandler

Base Classes

Name

Description

AsmPrinterHandler

Collects and handles AsmPrinter objects required to build debug or EH information.

Member Functions

Name

Description

~DebugHandlerBase [destructor] [virtual]

Destroy this debug handler.

beginBasicBlockSection [virtual]

Process the beginning of a new basic‐block‐section within a function.

beginCodeAlignment [virtual]

Process the beginning of code alignment for a basic block.

beginFunclet [virtual]

Emit target‐specific EH funclet machinery.

beginFunction [virtual]

Gather pre‐function debug information.

beginInstruction [virtual]

Process beginning of an instruction.

beginModule [virtual]

Process the beginning of a module.

endBasicBlockSection [virtual]

Process the end of a basic‐block‐section within a function.

endFunclet [virtual]

Process the end of an EH funclet.

endFunction [virtual]

Gather post‐function debug information.

endInstruction [virtual]

Process end of an instruction.

endModule [virtual]

Emit all sections that should come after the content.

getInstOrdering

Return the instruction ordering for the current function.

getLabelAfterInsn

Return Label immediately following the instruction.

getLabelBeforeInsn

Return Label preceding the instruction.

getLexicalScopes

Return the lexical scopes for the current function.

markFunctionEnd [virtual]

Emit any function end marker (like .cfi_endproc).

setSymbolSize [virtual]

For symbols that have a size designated (e.g. common symbols), this tracks that size.

Static Member Functions

Name

Description

getBaseTypeSize

If this type is derived from a base type then return base type size.

isUnsignedDIType

Return true if type encoding is unsigned.

Protected Member Functions

Name

Description

DebugHandlerBase [constructor]

Construct a debug handler bound to the given AsmPrinter.

beginFunctionImpl [virtual]

Gather pre‐function debug information for a concrete backend.

endFunctionImpl [virtual]

Gather post‐function debug information for a concrete backend.

identifyScopeMarkers

Indentify instructions that are marking the beginning of or ending of a scope.

requestLabelAfterInsn

Ensure that a label will be emitted after MI.

requestLabelBeforeInsn

Ensure that a label will be emitted before MI.

skippedNonDebugFunction [virtual]

Called when a function has no debug information to emit.

Protected Data Members

Name

Description

Asm

Target of debug info emission.

CurMI

If nonnull, stores the current machine instruction we're processing.

DbgLabels

Mapping of inlined labels and DBG_LABEL machine instruction.

DbgValues

History of DBG_VALUE and clobber instructions for each user variable. Variables are listed in order of appearance.

EpilogBeginBlock

This block includes epilogue instructions.

LScopes

Lexical scopes for the current function.

LabelsAfterInsn

Maps instruction with label emitted after instruction.

LabelsBeforeInsn

Maps instruction with label emitted before instruction. FIXME: Make this private from DwarfDebug, we have the necessary accessors for it.

MMI

Collected machine module information.

PrevInstBB

Basic block that contained the previous instruction.

PrevInstLoc

Previous instruction's source location.

PrevLabel

Label associated with the previous instruction, if any.

PrologEndLoc

This location indicates end of function prologue and beginning of function body.

Created with MrDocs