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
const std::string & getName (std::string &F) const
const std::string & getDisplayName (std::string &F) const
const std::string & getLinkageName (std::string &F) 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 292 of file DebugInfo.h.


Constructor & Destructor Documentation

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

Definition at line 294 of file DebugInfo.h.

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

Definition at line 310 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 299 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 305 of file DebugInfo.h.

References llvm::dwarf::DW_TAG_variable.

Referenced by dump().

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

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

Definition at line 313 of file DebugInfo.h.

References llvm::DIDescriptor::getStringField().

Referenced by llvm::DISubprogram::describes(), and dump().

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

Definition at line 316 of file DebugInfo.h.

References llvm::DIDescriptor::getStringField().

Referenced by llvm::getLocationInfo().

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

Definition at line 319 of file DebugInfo.h.

References llvm::DIDescriptor::getStringField().

Referenced by llvm::DISubprogram::describes().

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

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

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

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 328 of file DebugInfo.h.

References llvm::DIDescriptor::getUnsignedField().

Referenced by dump().

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

Definition at line 329 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: