Records a position in IR for a source label (DILabel). Corresponds to the llvm.dbg.label intrinsic.

Synopsis

Declared in <llvm/IR/DebugProgramInstruction.h>

class DbgLabelRecord
    : public DbgRecord

Base Classes

Name

Description

DbgRecord

Base class for non‐instruction debug metadata records positioned in IR.

Type Aliases

Name

Description

const_self_iterator

Const iterator over DbgRecord nodes in a marker's list.

self_iterator

Iterator over DbgRecord nodes in a marker's list.

Enums

Name

Description

Kind

Subclass discriminator.

Member Functions

Name

Description

DbgLabelRecord [constructor]

Construct a label record for Label at source location DL.

clone

Clone this label record.

createDebugIntrinsic

Convert this label record back into an llvm.dbg.label intrinsic.

deleteRecord

@{ Delete this record, dispatching to the correct subclass destructor.

dump

Dump this record to stderr for debugging.

eraseFromParent

Unlink this record from its marker and destroy it.

getBlock

Return the basic block that contains this debug record.

getContext

Return the LLVM context that owns this debug record.

getDebugLoc

Return the source location associated with this debug record.

getFunction

Return the function that contains this debug record.

getInstruction

Return the instruction whose program position this record is attached to.

getLabel

Return the source label described by this record.

getMarker

Return the DbgMarker that links this record to its position in a block.

getModule

Return the module that contains this debug record.

getNextNode

Return the next DbgRecord in this marker's list.

getParent

Return the basic block that contains this debug record.

getPrevNode

Return the previous DbgRecord in this marker's list.

getRawLabel

Return the label metadata node without type checking.

getRecordKind

Return the subclass discriminator for this record.

insertAfter

insertAfter overloads

insertBefore

insertBefore overloads

isEquivalentTo

Same as isIdenticalToWhenDefined but checks DebugLoc too.

isIdenticalToWhenDefined

Return true if this record matches R ignoring debug location differences.

moveAfter

moveAfter overloads

moveBefore

moveBefore overloads

print

print overloads

removeFromParent

Unlink this record from its marker without destroying it.

setDebugLoc

Set the source location associated with this debug record.

setLabel

Set the source label described by this record.

setMarker

Associate this record with the given DbgMarker position in a block.

Static Member Functions

Name

Description

classof

Support type inquiry through isa, cast, and dyn_cast.

createUnresolvedDbgLabelRecord

Create a label record from unresolved metadata during parsing.

Data Members

Name

Description

Marker

Marker that this DbgRecord is linked into.

Protected Data Members

Name

Description

DbgLoc

Source location associated with this debug record.

RecordKind

Subclass discriminator.

Non-Member Functions

Name

Description

wrap

Wrap a DbgRecord pointer as an opaque LLVMDbgRecordRef.

Created with MrDocs