LLVM API Documentation

llvm::DIDescriptor Class Reference

#include <DebugInfo.h>

Inheritance diagram for llvm::DIDescriptor:

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

Collaboration graph
[legend]

List of all members.

Public Types

enum  {
  Version7 = 7 << 16, Version6 = 6 << 16, Version5 = 5 << 16, Version4 = 4 << 16,
  VersionMask = 0xffff0000
}

Public Member Functions

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

Static Public Member Functions

static bool classof (const DIDescriptor *D)

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
GlobalVariablegetGlobalVariableField (unsigned Elt) const

Protected Attributes

GlobalVariableGV


Detailed Description

Definition at line 33 of file DebugInfo.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
Version7 
Version6 
Version5 
Version4 
VersionMask 

Definition at line 35 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 66 of file DebugInfo.h.

Referenced by getDescriptorField().

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

Definition at line 67 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 59 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 71 of file DebugInfo.h.

References GV.

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

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

Definition at line 73 of file DebugInfo.h.

References getUnsignedField(), and VersionMask.

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

static bool llvm::DIDescriptor::classof ( const DIDescriptor D  )  [inline, static]

Reimplemented in llvm::DISubrange, llvm::DIDerivedType, and llvm::DICompositeType.

Definition at line 80 of file DebugInfo.h.


Member Data Documentation


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



This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.