|
LLVM
10.0.0
|
Classes | |
| class | CFIProgram |
| Represent a sequence of Call Frame Information instructions that, when read in order, construct a table mapping PC to frame state. More... | |
| class | CIE |
| DWARF Common Information Entry (CIE) More... | |
| struct | EnumTraits |
| struct | EnumTraits< Attribute > |
| struct | EnumTraits< Form > |
| struct | EnumTraits< Index > |
| struct | EnumTraits< Tag > |
| class | FDE |
| DWARF Frame Description Entry (FDE) More... | |
| struct | FormParams |
| A helper struct providing information about the byte size of DW_FORM values that vary in size depending on the DWARF version, address byte size, or DWARF32/DWARF64. More... | |
| class | FrameEntry |
| An entry in either debug_frame or eh_frame. More... | |
| struct | PubIndexEntryDescriptor |
| Describes an entry of the various gnu_pub* debug sections. More... | |
Variables | |
| const uint32_t | DW_INVALID_OFFSET = UINT32_MAX |
| Identifier of an invalid DIE offset in the .debug_info section. More... | |
| const uint32_t | DW_CIE_ID = UINT32_MAX |
| Special ID values that distinguish a CIE from a FDE in DWARF CFI. More... | |
| const uint64_t | DW64_CIE_ID = UINT64_MAX |
| enum llvm::dwarf::Attribute : uint16_t |
| enum llvm::dwarf::DwarfFormat : uint8_t |
| enum llvm::dwarf::Form : uint16_t |
| enum llvm::dwarf::Index |
| enum llvm::dwarf::LineNumberOps : uint8_t |
| enum llvm::dwarf::Tag : uint16_t |
| enum llvm::dwarf::TypeKind : uint8_t |
| enum llvm::dwarf::UnitType : unsigned char |
Returns the symbolic string representing Val when used as a value for atom Atom.
Definition at line 638 of file Dwarf.cpp.
References DW_ATOM_die_tag, DW_ATOM_null, and TagString().
Referenced by getUnitLengthFieldByteSize(), and llvm::AppleAcceleratorTable::readAtoms().
Returns the symbolic string representing Val when used as a value for attribute Attr.
Definition at line 605 of file Dwarf.cpp.
References AccessibilityString(), ArrayOrderString(), AttributeEncodingString(), CaseString(), ConventionString(), DecimalSignString(), DefaultedMemberString(), EndianityString(), InlineCodeString(), LanguageString(), VirtualityString(), and VisibilityString().
Referenced by dumpAttribute(), and getUnitLengthFieldByteSize().
| Optional< uint8_t > llvm::dwarf::getFixedFormByteSize | ( | dwarf::Form | Form, |
| FormParams | Params | ||
| ) |
Get the fixed byte size for a given form.
If the form has a fixed byte size, then an Optional with a value will be returned. If the form is always encoded using a variable length storage format (ULEB or SLEB numbers or blocks) then None will be returned.
| Form | DWARF form to get the fixed byte size for. |
| Params | DWARF parameters to help interpret forms. |
Form doesn't have a fixed byte size. Definition at line 660 of file Dwarf.cpp.
References llvm::dwarf::FormParams::AddrSize, llvm::dwarf::FormParams::getDwarfOffsetByteSize(), llvm::dwarf::FormParams::getRefAddrByteSize(), and llvm::None.
Referenced by llvm::DWARFAbbreviationDeclaration::extract(), llvm::DWARFAbbreviationDeclaration::AttributeSpec::getByteSize(), getUnitLengthFieldByteSize(), llvm::DIEInteger::SizeOf(), and llvm::DWARFFormValue::skipValue().
|
inline |
Get the byte size of the unit length field depending on the DWARF format.
Definition at line 567 of file Dwarf.h.
References AtomValueString(), AttributeValueString(), DWARF32, DWARF64, getFixedFormByteSize(), isValidFormForVersion(), llvm_unreachable, and llvm::dwarf::FormParams::Version.
Referenced by llvm::DWARFListTableHeader::extract(), llvm::DWARFUnitHeader::getUnitLengthFieldByteSize(), and llvm::DWARFListTableHeader::length().
|
inline |
Definition at line 185 of file Dwarf.h.
References DW_LANG_hi_user, DW_LANG_lo_user, and llvm_unreachable.
Referenced by computeIndexValue(), and llvm::DwarfUnit::getParentContextString().
Definition at line 91 of file Dwarf.h.
Referenced by llvm::DwarfUnit::getOrCreateStaticMemberDIE(), and llvm::DWARFVerifier::handleDebugInfo().
|
inline |
Definition at line 381 of file Dwarf.h.
Referenced by llvm::DWARFVerifier::DieRangeInfo::intersects(), and llvm::DWARFUnit::isMatchingUnitTypeAndTag().
|
inline |
Tells whether the specified form is defined in the specified version, or is an extension if extensions are allowed.
Definition at line 747 of file Dwarf.cpp.
References DWARF_VENDOR_DWARF, FormVendor(), FormVersion(), and llvm::IndexedInstrProf::Version.
Referenced by llvm::DIEAbbrev::Emit(), and getUnitLengthFieldByteSize().
| Optional< unsigned > llvm::dwarf::LanguageLowerBound | ( | dwarf::SourceLanguage | Lang | ) |
|
inline |
Take an optional DWARFFormValue and try to extract an address.
| V | and optional DWARFFormValue to attempt to extract the value from. |
Definition at line 261 of file DWARFFormValue.h.
References llvm::None.
|
inline |
Take an optional DWARFFormValue and extract a address.
| V | and optional DWARFFormValue to attempt to extract the value from. |
| Default | the default value to return in case of failure. |
Definition at line 280 of file DWARFFormValue.h.
|
inline |
Take an optional DWARFFormValue and try to extract block data.
| V | and optional DWARFFormValue to attempt to extract the value from. |
Definition at line 311 of file DWARFFormValue.h.
References llvm::None.
|
inline |
Take an optional DWARFFormValue and try to extract an reference.
| V | and optional DWARFFormValue to attempt to extract the value from. |
Definition at line 218 of file DWARFFormValue.h.
References llvm::None.
|
inline |
Take an optional DWARFFormValue and extract a reference.
| V | and optional DWARFFormValue to attempt to extract the value from. |
| Default | the default value to return in case of failure. |
Definition at line 230 of file DWARFFormValue.h.
|
inline |
Definition at line 268 of file DWARFFormValue.h.
References llvm::None.
Referenced by llvm::DWARFUnit::getBaseAddress(), and llvm::DWARFDie::getLowAndHighPC().
|
inline |
Take an optional DWARFFormValue and try to extract an section offset.
| V | and optional DWARFFormValue to attempt to extract the value from. |
Definition at line 289 of file DWARFFormValue.h.
References llvm::None.
Referenced by buildLineToUnitMap(), llvm::DWARFUnit::determineStringOffsetsTableContribution(), llvm::DWARFContext::getLineTableForUnit(), llvm::DWARFDie::getLocBaseAttribute(), llvm::DWARFDie::getRangesBaseAttribute(), llvm::DWARFVerifier::handleDebugInfo(), and llvm::DWARFUnit::tryExtractDIEsIfNeeded().
|
inline |
Take an optional DWARFFormValue and extract a section offset.
| V | and optional DWARFFormValue to attempt to extract the value from. |
| Default | the default value to return in case of failure. |
Definition at line 301 of file DWARFFormValue.h.
|
inline |
Take an optional DWARFFormValue and try to extract an signed constant.
| V | and optional DWARFFormValue to attempt to extract the value from. |
Definition at line 240 of file DWARFFormValue.h.
References llvm::None.
|
inline |
Take an optional DWARFFormValue and extract a signed integer.
| V | and optional DWARFFormValue to attempt to extract the value from. |
| Default | the default value to return in case of failure. |
Definition at line 252 of file DWARFFormValue.h.
Take an optional DWARFFormValue and try to extract a string value from it.
| V | and optional DWARFFormValue to attempt to extract the value from. |
Definition at line 161 of file DWARFFormValue.h.
References llvm::None.
Referenced by dumpAttribute(), llvm::DWARFUnit::getCompilationDir(), llvm::DWARFDie::getName(), llvm::DWARFVerifier::handleDebugInfo(), and llvm::DWARFUnit::tryExtractDIEsIfNeeded().
|
inline |
Take an optional DWARFFormValue and extract a string value from it.
| V | and optional DWARFFormValue to attempt to extract the value from. |
| Default | the default value to return in case of failure. |
Definition at line 186 of file DWARFFormValue.h.
References llvm::toString().
|
inline |
Take an optional DWARFFormValue and try to extract a string value from it.
| V | and optional DWARFFormValue to attempt to extract the value from. |
Definition at line 172 of file DWARFFormValue.h.
References llvm::Default.
Referenced by llvm::DWARFVerifier::handleDebugInfo().
|
inline |
Take an optional DWARFFormValue and try to extract an unsigned constant.
| V | and optional DWARFFormValue to attempt to extract the value from. |
Definition at line 196 of file DWARFFormValue.h.
References llvm::None.
Referenced by llvm::CompileUnit::CompileUnit(), llvm::DWARFDie::getCallerFrame(), llvm::DeclContextTree::getChildDeclContext(), llvm::DWARFDie::getDeclLine(), llvm::DWARFContext::getDWOCompileUnitForHash(), llvm::CompileUnit::getLanguage(), and llvm::DWARFUnit::tryExtractDIEsIfNeeded().
|
inline |
Take an optional DWARFFormValue and extract a unsigned constant.
| V | and optional DWARFFormValue to attempt to extract the value from. |
| Default | the default value to return in case of failure. |
Definition at line 208 of file DWARFFormValue.h.
| const uint64_t llvm::dwarf::DW64_CIE_ID = UINT64_MAX |
Definition at line 77 of file Dwarf.h.
Referenced by llvm::DWARFDebugFrame::parse().
Special ID values that distinguish a CIE from a FDE in DWARF CFI.
Not inside an enum because a 64-bit value is needed.
Definition at line 76 of file Dwarf.h.
Referenced by llvm::dwarf::CIE::dump(), and llvm::DWARFDebugFrame::parse().
1.8.13