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

 DIType (const MDNode *N=nullptr)
 operator DITypeRef () const
bool Verify () const
 Verify - Verify that a type descriptor is well formed.
DIScopeRef getContext () const
StringRef getName () const
 If the scope node has a name, return that, else return an empty string.
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 isPublic () 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 isLValueReference () const
bool isRValueReference () const
bool isValid () const

Protected Member Functions

void printInternal (raw_ostream &OS) const

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


Constructor & Destructor Documentation

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

Definition at line 309 of file DebugInfo.h.

References N.


Member Function Documentation

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

Definition at line 323 of file DebugInfo.h.

References llvm::DIDescriptor::getUInt64Field().

Gets the parent scope for this scope node or returns a default constructed scope.

Reimplemented from llvm::DIScope.

Definition at line 319 of file DebugInfo.h.

Referenced by llvm::DwarfUnit::createTypeDIE(), llvm::DIScope::getContext(), llvm::DwarfUnit::getOrCreateStaticMemberDIE(), and llvm::DwarfUnit::getOrCreateTypeDIE().

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

Definition at line 321 of file DebugInfo.h.

References llvm::DIDescriptor::getUnsignedField().

Referenced by llvm::DwarfUnit::addSourceLine().

StringRef llvm::DIType::getName ( ) const [inline]

If the scope node has a name, return that, else return an empty string.

Reimplemented from llvm::DIScope.

Definition at line 320 of file DebugInfo.h.

References llvm::DIDescriptor::getStringField().

Referenced by llvm::DwarfUnit::constructTypeDIE(), llvm::DIScope::getName(), and llvm::DwarfUnit::getOrCreateStaticMemberDIE().

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

Definition at line 326 of file DebugInfo.h.

References llvm::DIDescriptor::getUInt64Field().

Referenced by llvm::DwarfUnit::addBlockByrefAddress().

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

Definition at line 339 of file DebugInfo.h.

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

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

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

Definition at line 342 of file DebugInfo.h.

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

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

Definition at line 353 of file DebugInfo.h.

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

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

bool llvm::DIType::isObjectPointer ( ) const [inline]
bool llvm::DIType::isPrivate ( ) const [inline]
bool llvm::DIType::isProtected ( ) const [inline]
bool llvm::DIType::isPublic ( ) const [inline]

Definition at line 356 of file DebugInfo.h.

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

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

bool llvm::DIType::isStaticMember ( ) const [inline]
bool llvm::DIType::isValid ( ) const [inline]

Definition at line 359 of file DebugInfo.h.

References llvm::DIDescriptor::DbgNode, and llvm::DIDescriptor::isType().

Referenced by getBaseTypeSize().

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

Definition at line 351 of file DebugInfo.h.

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

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

Definition at line 345 of file DebugInfo.h.

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

llvm::DIType::operator DITypeRef ( ) const [inline]

Definition at line 310 of file DebugInfo.h.

References llvm::DIScope::getRef(), and llvm::DIDescriptor::isType().

void DIType::printInternal ( raw_ostream OS) const [protected]
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 305 of file DebugInfo.h.


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