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
void dump () const
 dump - print descriptor.

Static Public Member Functions

static bool ValidDebugInfo (Value *V, CodeGenOpt::Level OptLevel)
 ValidDebugInfo - Return true if V represents valid debug info value.

Protected Member Functions

 DIDescriptor (GlobalVariable *GV, unsigned RequiredTag)
const std::string & getStringField (unsigned Elt, std::string &Result) 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 * DbgGV


Detailed Description

Definition at line 45 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 78 of file DebugInfo.cpp.

References DbgGV, and getTag().

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

Definition at line 69 of file DebugInfo.h.

Referenced by getDescriptorField().

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

Definition at line 70 of file DebugInfo.h.


Member Function Documentation

const std::string & DIDescriptor::getStringField ( unsigned  Elt,
std::string &  Result 
) 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 62 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]

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

Definition at line 76 of file DebugInfo.h.

References getUnsignedField(), and llvm::LLVMDebugVersionMask.

Referenced by ValidDebugInfo().

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

bool DIDescriptor::ValidDebugInfo ( Value *  V,
CodeGenOpt::Level  OptLevel 
) [static]

void DIDescriptor::dump (  )  const


Member Data Documentation


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