LLVM 22.0.0git
llvm::DbgLabel Class Reference

This class is used to track label information. More...

#include "CodeGen/AsmPrinter/DwarfDebug.h"

Inheritance diagram for llvm::DbgLabel:
[legend]

Public Member Functions

 DbgLabel (const DILabel *L, const DILocation *IA, const MCSymbol *Sym=nullptr)
 Symbol before DBG_LABEL instruction.
dwarf::Tag getTag () const
 Translate tag to proper Dwarf tag.
const DILabelgetLabel () const
 Accessors.
const MCSymbolgetSymbol () const
StringRef getName () const
Public Member Functions inherited from llvm::DbgEntity
 DbgEntity (const DINode *N, const DILocation *IA, DbgEntityKind ID)
virtual ~DbgEntity ()=default
void setDIE (DIE &D)
const DINodegetEntity () const
 Accessors.
const DILocationgetInlinedAt () const
DIEgetDIE () const
DbgEntityKind getDbgEntityID () const

Static Public Member Functions

static bool classof (const DbgEntity *N)
Static Public Member Functions inherited from llvm::DbgEntity
static bool classof (const DbgEntity *N)

Additional Inherited Members

Public Types inherited from llvm::DbgEntity
enum  DbgEntityKind { DbgVariableKind , DbgLabelKind }

Detailed Description

This class is used to track label information.

Labels are collected from DBG_LABEL instructions.

Definition at line 289 of file DwarfDebug.h.

Constructor & Destructor Documentation

◆ DbgLabel()

llvm::DbgLabel::DbgLabel ( const DILabel * L,
const DILocation * IA,
const MCSymbol * Sym = nullptr )
inline

Symbol before DBG_LABEL instruction.

We need MCSymbol information to generate DW_AT_low_pc.

Definition at line 294 of file DwarfDebug.h.

References llvm::DbgEntity::DbgEntity(), and llvm::DbgEntity::DbgLabelKind.

Member Function Documentation

◆ classof()

bool llvm::DbgLabel::classof ( const DbgEntity * N)
inlinestatic

Definition at line 310 of file DwarfDebug.h.

References llvm::DbgEntity::DbgEntity(), llvm::DbgEntity::DbgLabelKind, and N.

◆ getLabel()

const DILabel * llvm::DbgLabel::getLabel ( ) const
inline

Accessors.

Definition at line 299 of file DwarfDebug.h.

References llvm::cast(), and llvm::DbgEntity::getEntity().

Referenced by getName().

◆ getName()

StringRef llvm::DbgLabel::getName ( ) const
inline

Definition at line 302 of file DwarfDebug.h.

References getLabel(), and llvm::DILabel::getName().

◆ getSymbol()

const MCSymbol * llvm::DbgLabel::getSymbol ( ) const
inline

Definition at line 300 of file DwarfDebug.h.

◆ getTag()

dwarf::Tag llvm::DbgLabel::getTag ( ) const
inline

Translate tag to proper Dwarf tag.

Definition at line 306 of file DwarfDebug.h.


The documentation for this class was generated from the following file: