LLVM 17.0.0git
Public Member Functions | Static Public Member Functions | List of all members
llvm::DbgLabel Class Reference

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

#include "CodeGen/AsmPrinter/DwarfDebug.h"

Inheritance diagram for llvm::DbgLabel:
Inheritance graph
Collaboration diagram for llvm::DbgLabel:
Collaboration graph

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
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
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 234 of file DwarfDebug.h.

Constructor & Destructor Documentation

◆ DbgLabel()

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

Symbol before DBG_LABEL instruction.

We need MCSymbol information to generate DW_AT_low_pc.

Definition at line 239 of file DwarfDebug.h.

Member Function Documentation

◆ classof()

static bool llvm::DbgLabel::classof ( const DbgEntity N)

Definition at line 255 of file DwarfDebug.h.

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

◆ getLabel()

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


Definition at line 244 of file DwarfDebug.h.

References llvm::DbgEntity::getEntity().

Referenced by getName().

◆ getName()

StringRef llvm::DbgLabel::getName ( ) const

Definition at line 247 of file DwarfDebug.h.

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

◆ getSymbol()

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

Definition at line 245 of file DwarfDebug.h.

◆ getTag()

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

Translate tag to proper Dwarf tag.

Definition at line 251 of file DwarfDebug.h.

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