LLVM API Documentation

Public Member Functions | Protected Member Functions | Friends
llvm::DIType Class Reference

#include <DebugInfo.h>

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

List of all members.

Public Member Functions

bool Verify () const
 Verify - Verify that a type descriptor is well formed.
 DIType (const MDNode *N)
 DIType ()
DIScope getContext () const
StringRef getName () 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
bool isAppleBlockExtension () const
bool isBlockByrefStruct () const
bool isVirtual () const
bool isArtificial () const
bool isObjectPointer () const
bool isObjcClassComplete () const
bool isVector () const
bool isStaticMember () const
bool isValid () const
bool isUnsignedDIType ()
 isUnsignedDIType - Return true if type encoding is unsigned.
void replaceAllUsesWith (DIDescriptor &D)
void replaceAllUsesWith (MDNode *D)

Protected Member Functions

void printInternal (raw_ostream &OS) const
 DIType (const MDNode *N, bool, bool)

Friends

class DIDescriptor

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 231 of file DebugInfo.h.


Constructor & Destructor Documentation

llvm::DIType::DIType ( const MDNode N,
bool  ,
bool   
) [inline, protected]

Definition at line 237 of file DebugInfo.h.

DIType::DIType ( const MDNode N) [explicit]
llvm::DIType::DIType ( ) [inline, explicit]

Definition at line 242 of file DebugInfo.h.


Member Function Documentation

uint64_t llvm::DIType::getAlignInBits ( ) const [inline]
DIScope llvm::DIType::getContext ( ) const [inline]
unsigned llvm::DIType::getFlags ( ) const [inline]
unsigned llvm::DIType::getLineNumber ( ) const [inline]
StringRef llvm::DIType::getName ( ) const [inline]
uint64_t llvm::DIType::getOffsetInBits ( ) const [inline]
uint64_t llvm::DIType::getSizeInBits ( ) const [inline]
bool llvm::DIType::isAppleBlockExtension ( ) const [inline]

Definition at line 263 of file DebugInfo.h.

References llvm::DIDescriptor::FlagAppleBlock, and getFlags().

Referenced by llvm::CompileUnit::constructTypeDIE().

bool llvm::DIType::isArtificial ( ) const [inline]
bool llvm::DIType::isBlockByrefStruct ( ) const [inline]
bool llvm::DIType::isForwardDecl ( ) const [inline]
bool llvm::DIType::isObjcClassComplete ( ) const [inline]
bool llvm::DIType::isObjectPointer ( ) const [inline]
bool llvm::DIType::isPrivate ( ) const [inline]
bool llvm::DIType::isProtected ( ) const [inline]
bool llvm::DIType::isStaticMember ( ) const [inline]
bool DIType::isUnsignedDIType ( )
bool llvm::DIType::isValid ( ) const [inline]
bool llvm::DIType::isVector ( ) const [inline]
bool llvm::DIType::isVirtual ( ) const [inline]

Definition at line 269 of file DebugInfo.h.

References llvm::DIDescriptor::FlagVirtual, and getFlags().

Referenced by llvm::CompileUnit::createMemberDIE().

void DIType::printInternal ( raw_ostream OS) const [protected]
void DIType::replaceAllUsesWith ( DIDescriptor D)

replaceAllUsesWith - Replace all uses of debug info referenced by this descriptor.

Definition at line 367 of file DebugInfo.cpp.

References llvm::DIDescriptor::DbgNode, llvm::MDNode::deleteTemporary(), and llvm::Value::replaceAllUsesWith().

Referenced by llvm::DIBuilder::finalize().

void DIType::replaceAllUsesWith ( MDNode D)

replaceAllUsesWith - Replace all uses of debug info referenced by this descriptor.

Definition at line 387 of file DebugInfo.cpp.

References llvm::DIDescriptor::DbgNode, llvm::MDNode::deleteTemporary(), and llvm::Value::replaceAllUsesWith().

bool DIType::Verify ( ) const

Friends And Related Function Documentation

friend class DIDescriptor [friend]

Reimplemented from llvm::DIScope.

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

Definition at line 233 of file DebugInfo.h.


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