LLVM  9.0.0svn
Public Types | Public Member Functions | Static Public Member Functions | List of all members
llvm::DbgEntity Class Reference

This class is defined as the common parent of DbgVariable and DbgLabel such that it could levarage polymorphism to extract common code for DbgVariable and DbgLabel. More...

#include "CodeGen/AsmPrinter/DwarfDebug.h"

Inheritance diagram for llvm::DbgEntity:
Inheritance graph
[legend]

Public Types

enum  DbgEntityKind { DbgVariableKind, DbgLabelKind }
 

Public Member Functions

 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)
 

Detailed Description

This class is defined as the common parent of DbgVariable and DbgLabel such that it could levarage polymorphism to extract common code for DbgVariable and DbgLabel.

Definition at line 69 of file DwarfDebug.h.

Member Enumeration Documentation

◆ DbgEntityKind

Enumerator
DbgVariableKind 
DbgLabelKind 

Definition at line 76 of file DwarfDebug.h.

Constructor & Destructor Documentation

◆ DbgEntity()

llvm::DbgEntity::DbgEntity ( const DINode N,
const DILocation IA,
unsigned  ID 
)
inline

Definition at line 81 of file DwarfDebug.h.

◆ ~DbgEntity()

virtual llvm::DbgEntity::~DbgEntity ( )
inlinevirtual

Definition at line 83 of file DwarfDebug.h.

Member Function Documentation

◆ classof()

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

Definition at line 95 of file DwarfDebug.h.

References DbgLabelKind, DbgVariableKind, and getDbgEntityID().

◆ getDbgEntityID()

unsigned llvm::DbgEntity::getDbgEntityID ( ) const
inline

Definition at line 90 of file DwarfDebug.h.

Referenced by classof(), llvm::DbgVariable::classof(), and llvm::DbgLabel::classof().

◆ getDIE()

DIE* llvm::DbgEntity::getDIE ( ) const
inline

Definition at line 89 of file DwarfDebug.h.

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

◆ getEntity()

const DINode* llvm::DbgEntity::getEntity ( ) const
inline

◆ getInlinedAt()

const DILocation* llvm::DbgEntity::getInlinedAt ( ) const
inline

Definition at line 88 of file DwarfDebug.h.

Referenced by llvm::DbgVariable::addMMIEntry().

◆ setDIE()

void llvm::DbgEntity::setDIE ( DIE D)
inline

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