LLVM API Documentation

llvm::DIGlobal Class Reference

DIGlobal - This is a common class for global variables and subprograms. More...

#include <DebugInfo.h>

Inheritance diagram for llvm::DIGlobal:
[legend]
Collaboration diagram for llvm::DIGlobal:
[legend]

List of all members.

Public Member Functions

virtual ~DIGlobal ()
DIDescriptor getContext () const
std::string getName () const
std::string getDisplayName () const
std::string getLinkageName () const
DICompileUnit getCompileUnit () const
unsigned getLineNumber () const
DIType getType () const
unsigned isLocalToUnit () const
unsigned isDefinition () const
void dump () const
 dump - print global.

Protected Member Functions

 DIGlobal (GlobalVariable *GV, unsigned RequiredTag)

Static Protected Member Functions

static bool isSubprogram (unsigned TAG)
static bool isGlobalVariable (unsigned TAG)


Detailed Description

DIGlobal - This is a common class for global variables and subprograms.

Definition at line 240 of file DebugInfo.h.


Constructor & Destructor Documentation

llvm::DIGlobal::DIGlobal ( GlobalVariable *  GV,
unsigned  RequiredTag 
) [inline, explicit, protected]

Definition at line 242 of file DebugInfo.h.

virtual llvm::DIGlobal::~DIGlobal (  )  [inline, virtual]

Definition at line 258 of file DebugInfo.h.


Member Function Documentation

static bool llvm::DIGlobal::isSubprogram ( unsigned  TAG  )  [inline, static, protected]

isSubprogram - Return true if the specified tag is legal for DISubprogram.

Definition at line 247 of file DebugInfo.h.

References llvm::dwarf::DW_TAG_subprogram.

static bool llvm::DIGlobal::isGlobalVariable ( unsigned  TAG  )  [inline, static, protected]

isGlobalVariable - Return true if the specified tag is legal for DIGlobalVariable.

Definition at line 253 of file DebugInfo.h.

References llvm::dwarf::DW_TAG_variable.

Referenced by dump().

DIDescriptor llvm::DIGlobal::getContext (  )  const [inline]

std::string llvm::DIGlobal::getName (  )  const [inline]

Definition at line 261 of file DebugInfo.h.

References llvm::DIDescriptor::getStringField().

Referenced by dump().

std::string llvm::DIGlobal::getDisplayName (  )  const [inline]

Definition at line 262 of file DebugInfo.h.

References llvm::DIDescriptor::getStringField().

std::string llvm::DIGlobal::getLinkageName (  )  const [inline]

Definition at line 263 of file DebugInfo.h.

References llvm::DIDescriptor::getStringField().

DICompileUnit llvm::DIGlobal::getCompileUnit (  )  const [inline]

unsigned llvm::DIGlobal::getLineNumber (  )  const [inline]

Definition at line 265 of file DebugInfo.h.

References llvm::DIDescriptor::getUnsignedField().

Referenced by dump(), and llvm::FunctionLoweringInfo::set().

DIType llvm::DIGlobal::getType (  )  const [inline]

Reimplemented in llvm::DISubprogram.

Definition at line 266 of file DebugInfo.h.

Referenced by llvm::DIGlobalVariable::Verify().

unsigned llvm::DIGlobal::isLocalToUnit (  )  const [inline]

isLocalToUnit - Return true if this subprogram is local to the current compile unit, like 'static' in C.

Definition at line 270 of file DebugInfo.h.

References llvm::DIDescriptor::getUnsignedField().

Referenced by dump().

unsigned llvm::DIGlobal::isDefinition (  )  const [inline]

Definition at line 271 of file DebugInfo.h.

References llvm::DIDescriptor::getUnsignedField().

Referenced by dump().

void DIGlobal::dump (  )  const


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