LLVM API Documentation
#include <DebugInfo.h>


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 |
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.
Definition at line 237 of file DebugInfo.h.
| DIType::DIType | ( | const MDNode * | N | ) | [explicit] |
Definition at line 352 of file DebugInfo.cpp.
References llvm::DIDescriptor::DbgNode, llvm::DIDescriptor::isBasicType(), llvm::DIDescriptor::isCompositeType(), and llvm::DIDescriptor::isDerivedType().
| llvm::DIType::DIType | ( | ) | [inline, explicit] |
Definition at line 242 of file DebugInfo.h.
| uint64_t llvm::DIType::getAlignInBits | ( | ) | const [inline] |
Definition at line 248 of file DebugInfo.h.
References llvm::DIDescriptor::getUInt64Field().
Referenced by llvm::CompileUnit::createMemberDIE(), and printInternal().
| DIScope llvm::DIType::getContext | ( | ) | const [inline] |
Definition at line 244 of file DebugInfo.h.
Referenced by llvm::CompileUnit::addGlobalType(), llvm::CompileUnit::constructTypeDIE(), llvm::CompileUnit::createGlobalVariableDIE(), llvm::CompileUnit::getOrCreateTypeDIE(), llvm::isSubprogramContext(), Verify(), and llvm::DICompositeType::Verify().
| unsigned llvm::DIType::getFlags | ( | ) | const [inline] |
Definition at line 252 of file DebugInfo.h.
References llvm::DIDescriptor::getUnsignedField().
Referenced by llvm::DIBuilder::createArtificialType(), llvm::DIBuilder::createObjectPointerType(), isAppleBlockExtension(), isArtificial(), isBlockByrefStruct(), isForwardDecl(), isObjcClassComplete(), isObjectPointer(), isPrivate(), isProtected(), isStaticMember(), isVector(), and isVirtual().
| unsigned llvm::DIType::getLineNumber | ( | ) | const [inline] |
Definition at line 246 of file DebugInfo.h.
References llvm::DIDescriptor::getUnsignedField().
Referenced by llvm::CompileUnit::addSourceLine(), and printInternal().
| StringRef llvm::DIType::getName | ( | ) | const [inline] |
Definition at line 245 of file DebugInfo.h.
References llvm::DIDescriptor::getStringField().
Referenced by llvm::CompileUnit::addBlockByrefAddress(), llvm::CompileUnit::addGlobalType(), llvm::CompileUnit::constructTypeDIE(), llvm::CompileUnit::createMemberDIE(), llvm::CompileUnit::createStaticMemberDIE(), llvm::CompileUnit::getOrCreateTypeDIE(), llvm::DbgVariable::getType(), and printInternal().
| uint64_t llvm::DIType::getOffsetInBits | ( | ) | const [inline] |
Definition at line 251 of file DebugInfo.h.
References llvm::DIDescriptor::getUInt64Field().
Referenced by llvm::CompileUnit::addBlockByrefAddress(), llvm::CompileUnit::createMemberDIE(), and printInternal().
| uint64_t llvm::DIType::getSizeInBits | ( | ) | const [inline] |
Definition at line 247 of file DebugInfo.h.
References llvm::DIDescriptor::getUInt64Field().
Referenced by llvm::CompileUnit::constructTypeDIE(), llvm::CompileUnit::createMemberDIE(), llvm::DIDerivedType::getOriginalTypeSize(), isTypeSigned(), and printInternal().
| 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] |
Definition at line 272 of file DebugInfo.h.
References llvm::DIDescriptor::FlagArtificial, and getFlags().
Referenced by llvm::DIBuilder::createArtificialType(), llvm::CompileUnit::createMemberDIE(), llvm::CompileUnit::getOrCreateSubprogramDIE(), llvm::DbgVariable::isArtificial(), and printInternal().
| bool llvm::DIType::isBlockByrefStruct | ( | ) | const [inline] |
Definition at line 266 of file DebugInfo.h.
References llvm::DIDescriptor::FlagBlockByrefStruct, and getFlags().
Referenced by llvm::DIVariable::isBlockByrefVariable().
| bool llvm::DIType::isForwardDecl | ( | ) | const [inline] |
Definition at line 259 of file DebugInfo.h.
References llvm::DIDescriptor::FlagFwdDecl, and getFlags().
Referenced by llvm::CompileUnit::addGlobalType(), llvm::CompileUnit::constructTypeDIE(), llvm::CompileUnit::getOrCreateTypeDIE(), and printInternal().
| bool llvm::DIType::isObjcClassComplete | ( | ) | const [inline] |
Definition at line 278 of file DebugInfo.h.
References llvm::DIDescriptor::FlagObjcClassComplete, and getFlags().
Referenced by llvm::CompileUnit::constructTypeDIE(), and llvm::CompileUnit::getOrCreateTypeDIE().
| bool llvm::DIType::isObjectPointer | ( | ) | const [inline] |
Definition at line 275 of file DebugInfo.h.
References llvm::DIDescriptor::FlagObjectPointer, and getFlags().
Referenced by llvm::DIBuilder::createObjectPointerType(), and llvm::DbgVariable::isObjectPointer().
| bool llvm::DIType::isPrivate | ( | ) | const [inline] |
Definition at line 253 of file DebugInfo.h.
References llvm::DIDescriptor::FlagPrivate, and getFlags().
Referenced by llvm::CompileUnit::createMemberDIE(), llvm::CompileUnit::createStaticMemberDIE(), and printInternal().
| bool llvm::DIType::isProtected | ( | ) | const [inline] |
Definition at line 256 of file DebugInfo.h.
References llvm::DIDescriptor::FlagProtected, and getFlags().
Referenced by llvm::CompileUnit::createMemberDIE(), llvm::CompileUnit::createStaticMemberDIE(), and printInternal().
| bool llvm::DIType::isStaticMember | ( | ) | const [inline] |
Definition at line 284 of file DebugInfo.h.
References llvm::DIDescriptor::FlagStaticMember, and getFlags().
Referenced by llvm::CompileUnit::constructTypeDIE(), llvm::CompileUnit::createGlobalVariableDIE(), llvm::DIDerivedType::getConstant(), and printInternal().
| bool DIType::isUnsignedDIType | ( | ) |
isUnsignedDIType - Return true if type encoding is unsigned.
Definition at line 406 of file DebugInfo.cpp.
References llvm::DIDescriptor::DbgNode, llvm::dwarf::DW_ATE_boolean, llvm::dwarf::DW_ATE_unsigned, llvm::dwarf::DW_ATE_unsigned_char, llvm::DIBasicType::getEncoding(), llvm::DIDerivedType::getTypeDerivedFrom(), isUnsignedDIType(), llvm::DIBasicType::Verify(), and llvm::DIDerivedType::Verify().
Referenced by llvm::CompileUnit::constructVariableDIE(), llvm::CompileUnit::createGlobalVariableDIE(), llvm::CompileUnit::getOrCreateTemplateValueParameterDIE(), and isUnsignedDIType().
| bool llvm::DIType::isValid | ( | ) | const [inline] |
Definition at line 287 of file DebugInfo.h.
References llvm::DIDescriptor::DbgNode, llvm::DIDescriptor::isBasicType(), llvm::DIDescriptor::isCompositeType(), and llvm::DIDescriptor::isDerivedType().
Referenced by llvm::DIDerivedType::getOriginalTypeSize().
| bool llvm::DIType::isVector | ( | ) | const [inline] |
Definition at line 281 of file DebugInfo.h.
References llvm::DIDescriptor::FlagVector, and getFlags().
Referenced by llvm::CompileUnit::constructArrayTypeDIE(), and printInternal().
| 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] |
Reimplemented from llvm::DIScope.
Definition at line 1105 of file DebugInfo.cpp.
References llvm::dwarf::AttributeEncodingString(), llvm::DIDescriptor::DbgNode, llvm::StringRef::empty(), getAlignInBits(), getLineNumber(), getName(), getOffsetInBits(), getSizeInBits(), isArtificial(), llvm::DIDescriptor::isBasicType(), isForwardDecl(), isPrivate(), isProtected(), isStaticMember(), and isVector().
Referenced by llvm::DIDescriptor::print().
| 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 |
Verify - Verify that a type descriptor is well formed.
Reimplemented from llvm::DIDescriptor.
Reimplemented in llvm::DICompositeType, llvm::DIDerivedType, and llvm::DIBasicType.
Definition at line 446 of file DebugInfo.cpp.
References llvm::dwarf::DW_TAG_array_type, llvm::dwarf::DW_TAG_const_type, llvm::dwarf::DW_TAG_enumeration_type, llvm::dwarf::DW_TAG_pointer_type, llvm::dwarf::DW_TAG_ptr_to_member_type, llvm::dwarf::DW_TAG_reference_type, llvm::dwarf::DW_TAG_restrict_type, llvm::dwarf::DW_TAG_rvalue_reference_type, llvm::dwarf::DW_TAG_subroutine_type, llvm::dwarf::DW_TAG_volatile_type, getContext(), llvm::DIScope::getFilename(), llvm::DIDescriptor::getTag(), llvm::DIDescriptor::isBasicType(), and llvm::DIDescriptor::isType().
Referenced by llvm::CompileUnit::addSourceLine(), llvm::CompileUnit::addType(), llvm::CompileUnit::constructTypeDIE(), llvm::DIBuilder::createFriend(), llvm::DIBuilder::createInheritance(), llvm::DIBuilder::createLocalVariable(), llvm::DIBuilder::createReferenceType(), llvm::DIBuilder::createTypedef(), llvm::CompileUnit::getOrCreateTypeDIE(), llvm::DIGlobalVariable::Verify(), llvm::DIVariable::Verify(), and llvm::DIObjCProperty::Verify().
friend class DIDescriptor [friend] |
Reimplemented from llvm::DIScope.
Reimplemented in llvm::DICompositeType, and llvm::DIDerivedType.
Definition at line 233 of file DebugInfo.h.