LLVM API Documentation

llvm::DIDescriptor Class Reference

#include <DebugInfo.h>

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

List of all members.

Public Member Functions

 DIDescriptor ()
 DIDescriptor (GlobalVariable *gv)
bool isNull () const
GlobalVariable * getGV () const
unsigned getVersion () const
unsigned getTag () const

Protected Member Functions

 DIDescriptor (GlobalVariable *GV, unsigned RequiredTag)
std::string getStringField (unsigned Elt) const
unsigned getUnsignedField (unsigned Elt) const
uint64_t getUInt64Field (unsigned Elt) const
DIDescriptor getDescriptorField (unsigned Elt) const
template<typename DescTy>
DescTy getFieldAs (unsigned Elt) const
GlobalVariable * getGlobalVariableField (unsigned Elt) const

Protected Attributes

GlobalVariable * GV


Detailed Description

Definition at line 34 of file DebugInfo.h.


Constructor & Destructor Documentation

DIDescriptor::DIDescriptor ( GlobalVariable *  GV,
unsigned  RequiredTag 
) [protected]

DIDescriptor constructor. If the specified GV is non-null, this checks to make sure that the tag in the descriptor matches 'RequiredTag'. If not, the debug info is corrupt and we ignore it.

Definition at line 30 of file DebugInfo.cpp.

References getTag(), and GV.

llvm::DIDescriptor::DIDescriptor (  )  [inline, explicit]

Definition at line 58 of file DebugInfo.h.

Referenced by getDescriptorField().

llvm::DIDescriptor::DIDescriptor ( GlobalVariable *  gv  )  [inline, explicit]

Definition at line 59 of file DebugInfo.h.


Member Function Documentation

std::string DIDescriptor::getStringField ( unsigned  Elt  )  const [protected]

unsigned llvm::DIDescriptor::getUnsignedField ( unsigned  Elt  )  const [inline, protected]

uint64_t DIDescriptor::getUInt64Field ( unsigned  Elt  )  const [protected]

DIDescriptor DIDescriptor::getDescriptorField ( unsigned  Elt  )  const [protected]

template<typename DescTy>
DescTy llvm::DIDescriptor::getFieldAs ( unsigned  Elt  )  const [inline, protected]

Definition at line 51 of file DebugInfo.h.

References getDescriptorField(), and getGV().

GlobalVariable * DIDescriptor::getGlobalVariableField ( unsigned  Elt  )  const [protected]

bool llvm::DIDescriptor::isNull (  )  const [inline]

GlobalVariable* llvm::DIDescriptor::getGV (  )  const [inline]

Definition at line 63 of file DebugInfo.h.

References GV.

Referenced by getFieldAs(), and llvm::DIFactory::GetOrCreateSubrange().

unsigned llvm::DIDescriptor::getVersion (  )  const [inline]

Definition at line 65 of file DebugInfo.h.

References getUnsignedField(), and llvm::LLVMDebugVersionMask.

unsigned llvm::DIDescriptor::getTag (  )  const [inline]


Member Data Documentation


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