LLVM  14.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. More...
dwarf::Tag getTag () const
 Translate tag to proper Dwarf tag. More...
const DILabelgetLabel () const
 Accessors. More...
const MCSymbolgetSymbol () const
StringRef getName () const
- Public Member Functions inherited from llvm::DbgEntity
 DbgEntity (const DINode *N, const DILocation *IA, unsigned ID)
virtual ~DbgEntity ()
void setDIE (DIE &D)
const DINodegetEntity () const
 Accessors. More...
const DILocationgetInlinedAt () const
DIEgetDIE () const
unsigned 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 233 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 238 of file DwarfDebug.h.

Member Function Documentation

◆ classof()

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

Definition at line 254 of file DwarfDebug.h.

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

◆ getLabel()

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


Definition at line 243 of file DwarfDebug.h.

References llvm::DbgEntity::getEntity().

Referenced by getName().

◆ getName()

StringRef llvm::DbgLabel::getName ( ) const

Definition at line 246 of file DwarfDebug.h.

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

◆ getSymbol()

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

Definition at line 244 of file DwarfDebug.h.

◆ getTag()

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

Translate tag to proper Dwarf tag.

Definition at line 250 of file DwarfDebug.h.

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