LLVM  8.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 68 of file DwarfDebug.h.

Member Enumeration Documentation

◆ DbgEntityKind

Enumerator
DbgVariableKind 
DbgLabelKind 

Definition at line 75 of file DwarfDebug.h.

Constructor & Destructor Documentation

◆ DbgEntity()

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

Definition at line 80 of file DwarfDebug.h.

◆ ~DbgEntity()

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

Definition at line 82 of file DwarfDebug.h.

Member Function Documentation

◆ classof()

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

Definition at line 94 of file DwarfDebug.h.

References DbgLabelKind, DbgVariableKind, and getDbgEntityID().

◆ getDbgEntityID()

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

Definition at line 89 of file DwarfDebug.h.

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

◆ getDIE()

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

Definition at line 88 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

◆ setDIE()

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

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