LLVM  8.0.1
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
[legend]
Collaboration diagram for llvm::DbgLabel:
Collaboration graph
[legend]

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 
)
inline

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)
inlinestatic

◆ getLabel()

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

◆ getName()

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

Definition at line 246 of file DwarfDebug.h.

Referenced by llvm::DwarfCompileUnit::applyLabelAttributes().

◆ getSymbol()

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

Definition at line 244 of file DwarfDebug.h.

Referenced by llvm::DwarfCompileUnit::finishEntityDefinition().

◆ getTag()

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

Translate tag to proper Dwarf tag.

Definition at line 250 of file DwarfDebug.h.

Referenced by llvm::DwarfCompileUnit::constructLabelDIE().


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