LLVM API Documentation

llvm::DIDerivedType Class Reference

#include <DebugInfo.h>

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

List of all members.

Public Member Functions

 DIDerivedType (GlobalVariable *GV)
DIType getTypeDerivedFrom () const
uint64_t getOriginalTypeSize () const
void dump () const
 dump - print derived type.
void replaceAllUsesWith (DIDescriptor &D)

Protected Member Functions

 DIDerivedType (GlobalVariable *GV, bool, bool)


Detailed Description

DIDerivedType - A simple derived type, like a const qualified type, a typedef, a pointer or reference, etc.

Definition at line 245 of file DebugInfo.h.


Constructor & Destructor Documentation

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

Definition at line 247 of file DebugInfo.h.

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


Member Function Documentation

DIType llvm::DIDerivedType::getTypeDerivedFrom (  )  const [inline]

Definition at line 256 of file DebugInfo.h.

Referenced by dump(), and getOriginalTypeSize().

uint64_t DIDerivedType::getOriginalTypeSize (  )  const

getOriginalTypeSize - If this type is derived from a base type then return base type size.

getOriginalTypeSize - If this type is derived from a base type then return base type size.

Definition at line 316 of file DebugInfo.cpp.

References llvm::X86ISD::BT, llvm::dwarf::DW_TAG_base_type, llvm::dwarf::DW_TAG_member, llvm::DIType::getSizeInBits(), llvm::DIDescriptor::getTag(), and getTypeDerivedFrom().

void DIDerivedType::dump (  )  const

dump - print derived type.

dump - Print derived type.

Reimplemented from llvm::DIType.

Reimplemented in llvm::DICompositeType.

Definition at line 406 of file DebugInfo.cpp.

References llvm::cerr(), llvm::DIType::dump(), and getTypeDerivedFrom().

void DIDerivedType::replaceAllUsesWith ( DIDescriptor &  D  ) 

replaceAllUsesWith - Replace all uses of debug info referenced by this descriptor. After this completes, the current debug info value is erased.

replaceAllUsesWith - Replace all uses of debug info referenced by this descriptor. After this completes, the current debug info value is erased.

Definition at line 213 of file DebugInfo.cpp.

References llvm::GlobalVariable::eraseFromParent(), llvm::DIDescriptor::getGV(), llvm::DIDescriptor::isNull(), and llvm::Value::replaceAllUsesWith().


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