LLVM API Documentation

llvm::DIType Class Reference

#include <DebugInfo.h>

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

List of all members.

Public Types

enum  { FlagPrivate = 1 << 0, FlagProtected = 1 << 1, FlagFwdDecl = 1 << 2 }

Public Member Functions

bool Verify () const
 Verify - Verify that a type descriptor is well formed.
 DIType (GlobalVariable *GV)
 DIType ()
virtual ~DIType ()
DIDescriptor getContext () const
const std::string & getName (std::string &F) const
DICompileUnit getCompileUnit () const
unsigned getLineNumber () const
uint64_t getSizeInBits () const
uint64_t getAlignInBits () const
uint64_t getOffsetInBits () const
unsigned getFlags () const
bool isPrivate () const
bool isProtected () const
bool isForwardDecl () const
void dump () const
 dump - print type.

Static Public Member Functions

static bool isDerivedType (unsigned TAG)
static bool isCompositeType (unsigned TAG)
static bool isBasicType (unsigned TAG)

Protected Member Functions

 DIType (GlobalVariable *GV, unsigned Tag)
 DIType (GlobalVariable *GV, bool, bool)


Detailed Description

DIType - This is a wrapper for a type. FIXME: Types should be factored much better so that CV qualifiers and others do not require a huge and empty descriptor full of zeros.

Definition at line 169 of file DebugInfo.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
FlagPrivate 
FlagProtected 
FlagFwdDecl 

Definition at line 171 of file DebugInfo.h.


Constructor & Destructor Documentation

llvm::DIType::DIType ( GlobalVariable *  GV,
unsigned  Tag 
) [inline, protected]

Definition at line 178 of file DebugInfo.h.

llvm::DIType::DIType ( GlobalVariable *  GV,
bool  ,
bool   
) [inline, protected]

Definition at line 181 of file DebugInfo.h.

DIType::DIType ( GlobalVariable *  GV  )  [explicit]

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

Definition at line 202 of file DebugInfo.h.

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

Definition at line 203 of file DebugInfo.h.


Member Function Documentation

bool DIType::isDerivedType ( unsigned  Tag  )  [static]

bool DIType::isCompositeType ( unsigned  TAG  )  [static]

static bool llvm::DIType::isBasicType ( unsigned  TAG  )  [inline, static]

isBasicType - Return true if the specified tag is legal for DIBasicType.

Definition at line 194 of file DebugInfo.h.

References llvm::dwarf::DW_TAG_base_type.

Referenced by dump().

bool DIType::Verify (  )  const

Verify - Verify that a type descriptor is well formed.

Reimplemented in llvm::DICompositeType.

Definition at line 234 of file DebugInfo.cpp.

References getCompileUnit(), getContext(), llvm::DIDescriptor::isNull(), and llvm::DICompileUnit::Verify().

Referenced by llvm::DIGlobalVariable::Verify(), and llvm::DIVariable::Verify().

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

Definition at line 205 of file DebugInfo.h.

References llvm::DIDescriptor::getDescriptorField().

Referenced by llvm::DICompositeType::Verify(), and Verify().

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

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

Definition at line 209 of file DebugInfo.h.

Referenced by dump(), Verify(), and llvm::DICompositeType::Verify().

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

Definition at line 210 of file DebugInfo.h.

References llvm::DIDescriptor::getUnsignedField().

Referenced by dump().

uint64_t llvm::DIType::getSizeInBits (  )  const [inline]

Definition at line 211 of file DebugInfo.h.

References llvm::DIDescriptor::getUInt64Field().

Referenced by dump(), and llvm::DIDerivedType::getOriginalTypeSize().

uint64_t llvm::DIType::getAlignInBits (  )  const [inline]

Definition at line 212 of file DebugInfo.h.

References llvm::DIDescriptor::getUInt64Field().

Referenced by dump().

uint64_t llvm::DIType::getOffsetInBits (  )  const [inline]

Definition at line 215 of file DebugInfo.h.

References llvm::DIDescriptor::getUInt64Field().

Referenced by dump().

unsigned llvm::DIType::getFlags (  )  const [inline]

Definition at line 216 of file DebugInfo.h.

References llvm::DIDescriptor::getUnsignedField().

Referenced by isForwardDecl(), isPrivate(), and isProtected().

bool llvm::DIType::isPrivate (  )  const [inline]

Definition at line 217 of file DebugInfo.h.

References FlagPrivate, and getFlags().

Referenced by dump().

bool llvm::DIType::isProtected (  )  const [inline]

Definition at line 220 of file DebugInfo.h.

References FlagProtected, and getFlags().

Referenced by dump().

bool llvm::DIType::isForwardDecl (  )  const [inline]

Definition at line 223 of file DebugInfo.h.

References FlagFwdDecl, and getFlags().

Referenced by dump().

void DIType::dump (  )  const


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