LLVM
8.0.1
|
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 604 of file Dwarf.cpp.
References DW_ATOM_die_tag, DW_ATOM_null, and TagString().
Referenced by llvm::dwarf::FormParams::operator bool(), and llvm::AppleAcceleratorTable::readAtoms().
Returns the symbolic string representing Val when used as a value for attribute Attr.
Definition at line 573 of file Dwarf.cpp.
References AccessibilityString(), ArrayOrderString(), AttributeEncodingString(), CaseString(), ConventionString(), DecimalSignString(), EndianityString(), InlineCodeString(), LanguageString(), VirtualityString(), and VisibilityString().
Referenced by dumpAttribute(), and llvm::dwarf::FormParams::operator bool().
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 626 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(), llvm::dwarf::FormParams::operator bool(), llvm::DIEInteger::SizeOf(), and llvm::DWARFFormValue::skipValue().
Definition at line 86 of file Dwarf.h.
Referenced by llvm::DwarfUnit::getOrCreateStaticMemberDIE(), and llvm::DWARFVerifier::handleDebugInfo().
|
inline |
Definition at line 344 of file Dwarf.h.
Referenced by 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 713 of file Dwarf.cpp.
References DWARF_VENDOR_DWARF, FormVendor(), FormVersion(), and llvm::IndexedInstrProf::Version.
Referenced by llvm::DIEAbbrev::Emit(), and llvm::dwarf::FormParams::operator bool().
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 239 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 258 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 289 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 196 of file DWARFFormValue.h.
References llvm::None.
Referenced by llvm::DWARFDie::getAttributeValueAsReferencedDie().
|
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 208 of file DWARFFormValue.h.
|
inline |
Definition at line 246 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 267 of file DWARFFormValue.h.
References llvm::None.
Referenced by buildLineToUnitMap(), llvm::DWARFUnit::determineStringOffsetsTableContribution(), llvm::DWARFUnit::getCompilationDir(), llvm::DWARFContext::getLineTableForUnit(), llvm::DWARFDie::getRangesBaseAttribute(), and llvm::DWARFVerifier::handleDebugInfo().
|
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 279 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 218 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 230 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 152 of file DWARFFormValue.h.
References llvm::None.
Referenced by dumpAttribute(), llvm::DWARFUnit::getCompilationDir(), and llvm::DWARFDie::getName().
|
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 164 of file DWARFFormValue.h.
References llvm::toString().
|
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 174 of file DWARFFormValue.h.
References llvm::None.
Referenced by llvm::DWARFDie::getCallerFrame(), llvm::DWARFUnit::getCompilationDir(), llvm::DWARFDie::getDeclLine(), and llvm::DWARFContext::getDWOCompileUnitForHash().
|
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 186 of file DWARFFormValue.h.
const uint64_t llvm::dwarf::DW64_CIE_ID = UINT64_MAX |
Definition at line 72 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 71 of file Dwarf.h.
Referenced by llvm::dwarf::CIE::dump(), and llvm::DWARFDebugFrame::parse().