41 assert(Shift < 64 &&
"undefined behavior");
44 if (!PropName.empty())
47 OS <<
formatv(
"DW_APPLE_PROPERTY_{0:x}", Bit);
57 unsigned AddressSize,
unsigned Indent,
65 R.dump(OS, AddressSize, DumpOpts, &Obj);
73 "bad FORM for location list");
77 if (FormValue.
getForm() == DW_FORM_loclistx) {
78 FormValue.
dump(OS, DumpOpts);
80 if (
auto LoclistOffset = U->getLoclistOffset(
Offset))
85 U->getLocationTable().dumpLocationList(
86 &
Offset, OS, U->getBaseAddress(), Ctx.getDWARFObj(), U, DumpOpts, Indent);
92 FormValue.
dump(OS, DumpOpts);
98 OS <<
" \"" << ASName <<
"\"";
107 "bad FORM for location expression");
116 return D.getAttributeValueAsReferencedDie(
F).resolveTypeUnitReference();
122 if (AttrValue.
Attr != DW_AT_language_version)
125 auto NameForm = Die.
find(DW_AT_language_name);
129 auto LName = NameForm->getAsUnsignedConstant();
146 if (PropDIE.
getTag() != DW_TAG_APPLE_property)
149 auto PropNameForm = PropDIE.
find(DW_AT_APPLE_property_name);
153 auto NameOrErr = PropNameForm->getAsCString();
155 return NameOrErr.takeError();
165 const char BaseIndent[] =
" ";
183 if (Attr == DW_AT_decl_file || Attr == DW_AT_call_file) {
185 if (
const auto *LT = U->getContext().getLineTableForUnit(U)) {
187 if (LT->getFileNameByIndex(
188 *Val, U->getCompilationDir(),
191 File =
'"' + File +
'"';
199 auto DumpUnsignedConstant = [&OS,
204 FormValue.
dump(OS, DumpOpts);
209 bool ShouldDumpRawLanguageVersion =
210 Attr == DW_AT_language_version &&
215 else if (Attr == DW_AT_decl_line || Attr == DW_AT_decl_column ||
216 Attr == DW_AT_call_line || Attr == DW_AT_call_column) {
217 DumpUnsignedConstant(FormValue);
218 }
else if (Attr == DW_AT_language_version) {
219 if (ShouldDumpRawLanguageVersion)
220 DumpUnsignedConstant(FormValue);
221 }
else if (Attr == DW_AT_low_pc &&
225 FormValue.
dump(OS, DumpOpts);
231 }
else if (Attr == DW_AT_high_pc && !DumpOpts.
ShowForm && !DumpOpts.
Verbose &&
239 FormValue.
dump(OS, DumpOpts);
250 else if (Attr == dwarf::DW_AT_LLVM_address_space)
253 FormValue.
dump(OS, DumpOpts);
260 if (Attr == DW_AT_specification || Attr == DW_AT_abstract_origin ||
261 Attr == DW_AT_call_origin || Attr == DW_AT_import ||
262 Attr == DW_AT_LLVM_virtual_call_origin) {
263 if (
const char *Name =
266 OS << Space <<
"\"" << Name <<
'\"';
267 }
else if (Attr == DW_AT_property_forward) {
268 if (
const char *Name =
271 OS << Space <<
"\"" << Name <<
'\"';
272 }
else if (Attr == DW_AT_APPLE_property) {
275 OS << Space <<
"\"" << *PropNameOrErr <<
'\"';
280 toString(PropNameOrErr.takeError()))));
281 }
else if (Attr == DW_AT_type || Attr == DW_AT_containing_type) {
283 if (
D && !
D.isNULL()) {
288 }
else if (Attr == DW_AT_APPLE_property_attribute) {
291 }
else if (Attr == DW_AT_ranges) {
295 if (FormValue.
getForm() == DW_FORM_rnglistx)
296 if (
auto RangeListOffset =
299 dwarf::DW_FORM_sec_offset, *RangeListOffset);
300 FV.
dump(OS, DumpOpts);
303 dumpRanges(Obj, OS, RangesOrError.get(), U->getAddressByteSize(),
304 sizeof(BaseIndent) + Indent + 4, DumpOpts);
308 toString(RangesOrError.takeError()).c_str()));
309 }
else if (Attr == DW_AT_language_version) {
310 if (!PrettyVersionName.
empty())
311 WithColor(OS, Color) << (ShouldDumpRawLanguageVersion ?
" " :
"")
312 << PrettyVersionName;
319 std::string *OriginalFullName)
const {
323 if (
getTag() == DW_TAG_GNU_template_parameter_pack)
332 return Tag == DW_TAG_subprogram ||
Tag == DW_TAG_inlined_subroutine;
340 return AbbrevDecl->getAttributeValue(
getOffset(), Attr, *U);
344std::optional<DWARFFormValue>
350 for (
auto Attr : Attrs) {
351 if (
auto Value = AbbrevDecl->getAttributeValue(
getOffset(), Attr, *U))
358std::optional<DWARFFormValue>
370 while (!Worklist.
empty()) {
376 if (
auto Value = Die.find(Attrs))
380 {DW_AT_abstract_origin, DW_AT_specification, DW_AT_signature}) {
381 if (
auto D = Die.getAttributeValueAsReferencedDie(Attr))
392 if (std::optional<DWARFFormValue>
F =
find(Attr))
400 if (std::optional<uint64_t>
Offset = V.getAsRelativeReference()) {
401 Result =
const_cast<DWARFUnit *
>(V.getUnit())
403 }
else if (
Offset = V.getAsDebugInfoReference();
Offset) {
405 Result = SpecUnit->getDIEForOffset(*
Offset);
406 }
else if (std::optional<uint64_t> Sig = V.getAsSignatureReference()) {
409 Result = TU->getDIEForOffset(TU->getTypeOffset() + TU->getOffset());
415 if (
auto Attr =
find(DW_AT_signature)) {
416 if (std::optional<uint64_t> Sig = Attr->getAsReferenceUVal()) {
419 return TU->getDIEForOffset(TU->getTypeOffset() + TU->getOffset());
442 if (LowPC == Tombstone)
444 if (
auto FormValue =
find(DW_AT_high_pc)) {
445 if (
auto Address = FormValue->getAsAddress()) {
449 if (
auto Offset = FormValue->getAsUnsignedConstant()) {
458 uint64_t &SectionIndex)
const {
459 auto F =
find(DW_AT_low_pc);
463 if (
auto HighPcAddr =
getHighPC(LowPcAddr->Address)) {
464 LowPC = LowPcAddr->Address;
465 HighPC = *HighPcAddr;
466 SectionIndex = LowPcAddr->SectionIndex;
476 uint64_t LowPC, HighPC,
Index;
480 std::optional<DWARFFormValue>
Value =
find(DW_AT_ranges);
482 if (
Value->getForm() == DW_FORM_rnglistx)
483 return U->findRnglistFromIndex(*
Value->getAsSectionOffset());
484 return U->findRnglistFromOffset(*
Value->getAsSectionOffset());
491 if (!RangesOrError) {
496 for (
const auto &R : RangesOrError.get())
512 if (std::optional<DWARFFormValue> LV = Unit.find(dwarf::DW_AT_language))
513 return LV->getAsUnsignedConstant();
525 std::optional<DWARFFormValue> Location =
find(Attr);
530 if (std::optional<uint64_t>
Off = Location->getAsSectionOffset()) {
533 if (Location->getForm() == DW_FORM_loclistx) {
534 if (
auto LoclistOffset = U->getLoclistOffset(
Offset))
538 "Loclist table not found");
540 return U->findLoclistFromOffset(
Offset);
583 dwarf::DW_AT_linkage_name}),
594 if (
auto OptString = FormValue->getAsFile(
Kind))
601 uint32_t &CallDiscriminator)
const {
608static std::optional<uint64_t>
614 if (
auto SizeAttr = Die.
find(DW_AT_byte_size))
615 if (std::optional<uint64_t>
Size = SizeAttr->getAsUnsignedConstant())
619 case DW_TAG_pointer_type:
620 case DW_TAG_reference_type:
621 case DW_TAG_rvalue_reference_type:
623 case DW_TAG_ptr_to_member_type: {
625 if (
BaseType.getTag() == DW_TAG_subroutine_type)
626 return 2 * PointerSize;
629 case DW_TAG_const_type:
630 case DW_TAG_immutable_type:
631 case DW_TAG_volatile_type:
632 case DW_TAG_restrict_type:
633 case DW_TAG_template_alias:
634 case DW_TAG_typedef: {
639 case DW_TAG_array_type: {
643 std::optional<uint64_t> BaseSize =
649 if (Child.getTag() != DW_TAG_subrange_type)
652 if (
auto ElemCountAttr = Child.find(DW_AT_count))
653 if (std::optional<uint64_t> ElemCount =
654 ElemCountAttr->getAsUnsignedConstant())
656 if (
auto UpperBoundAttr = Child.find(DW_AT_upper_bound))
657 if (std::optional<int64_t> UpperBound =
658 UpperBoundAttr->getAsSignedConstant()) {
659 int64_t LowerBound = 0;
660 if (
auto LowerBoundAttr = Child.find(DW_AT_lower_bound))
661 LowerBound = LowerBoundAttr->getAsSignedConstant().value_or(0);
662 Size *= *UpperBound - LowerBound + 1;
688 Die.
dump(OS, Indent, DumpOpts);
718 OS <<
formatv(
" [{0}] {1}", abbrCode,
719 AbbrevDecl->hasChildren() ?
'*' :
' ');
720 if (std::optional<uint32_t> ParentIdx = Die->getParentIdx())
722 U->getDIEAtIndex(*ParentIdx).getOffset());
738 Child.
dump(OS, Indent + 2, ChildDumpOpts);
743 OS <<
"Abbreviation code not found in 'debug_abbrev' class for code: "
747 OS.
indent(Indent) <<
"NULL\n";
791 auto AbbrDecl = Die.getAbbreviationDeclarationPtr();
792 assert(AbbrDecl &&
"Must have abbreviation declaration");
795 Index = AbbrDecl->getNumAttributes();
798 AttrValue.Offset =
D.getOffset() + AbbrDecl->getCodeByteSize();
799 updateForIndex(*AbbrDecl, 0);
803void DWARFDie::attribute_iterator::updateForIndex(
808 if (
Index < NumAttrs) {
811 AttrValue.Offset += AttrValue.ByteSize;
812 uint64_t ParseOffset = AttrValue.Offset;
818 auto U = Die.getDwarfUnit();
819 assert(U &&
"Die must have valid DWARF unit");
823 AttrValue.ByteSize = ParseOffset - AttrValue.Offset;
825 assert(
Index == NumAttrs &&
"Indexes should be [0, NumAttrs) only");
831 if (
auto AbbrDecl = Die.getAbbreviationDeclarationPtr())
832 updateForIndex(*AbbrDecl, Index + 1);
839 case DW_AT_string_length:
840 case DW_AT_return_addr:
841 case DW_AT_data_member_location:
842 case DW_AT_frame_base:
843 case DW_AT_static_link:
845 case DW_AT_use_location:
846 case DW_AT_vtable_elem_location:
857 case DW_AT_byte_size:
858 case DW_AT_bit_offset:
860 case DW_AT_string_length:
861 case DW_AT_lower_bound:
862 case DW_AT_return_addr:
863 case DW_AT_bit_stride:
864 case DW_AT_upper_bound:
866 case DW_AT_data_member_location:
867 case DW_AT_frame_base:
869 case DW_AT_static_link:
870 case DW_AT_use_location:
871 case DW_AT_vtable_elem_location:
872 case DW_AT_allocated:
873 case DW_AT_associated:
874 case DW_AT_data_location:
875 case DW_AT_byte_stride:
877 case DW_AT_call_value:
878 case DW_AT_call_origin:
879 case DW_AT_call_target:
880 case DW_AT_call_target_clobbered:
881 case DW_AT_call_data_location:
882 case DW_AT_call_data_value:
884 case DW_AT_GNU_call_site_value:
885 case DW_AT_GNU_call_site_target:
886 case DW_AT_GNU_call_site_target_clobbered:
900 std::string *OriginalFullName) {
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
static GCRegistry::Add< StatepointGC > D("statepoint-example", "an example strategy for statepoint")
#define LLVM_DUMP_METHOD
Mark debug helper function definitions like dump() that should not be stripped from debug builds.
static void dumpAttribute(raw_ostream &OS, const DWARFDie &Die, const DWARFAttribute &AttrValue, unsigned Indent, DIDumpOptions DumpOpts)
static void dumpLocationExpr(raw_ostream &OS, const DWARFFormValue &FormValue, DWARFUnit *U, unsigned Indent, DIDumpOptions DumpOpts)
static void dumpDWARFAddressSpace(raw_ostream &OS, const DWARFFormValue &FormValue, const DIDumpOptions &DumpOpts)
static unsigned dumpParentChain(DWARFDie Die, raw_ostream &OS, unsigned Indent, DIDumpOptions DumpOpts, unsigned Depth=0)
Helper to dump a DIE with all of its parents, but no siblings.
static DWARFDie resolveReferencedType(DWARFDie D, DWARFFormValue F)
static void dumpLocationList(raw_ostream &OS, const DWARFFormValue &FormValue, DWARFUnit *U, unsigned Indent, DIDumpOptions DumpOpts)
static llvm::StringRef prettyLanguageVersionString(const DWARFAttribute &AttrValue, const DWARFDie &Die)
static llvm::Expected< llvm::StringRef > getApplePropertyName(const DWARFDie &PropDIE)
static std::optional< uint64_t > getTypeSizeImpl(DWARFDie Die, uint64_t PointerSize, SmallPtrSetImpl< const DWARFDebugInfoEntry * > &Visited)
static void dumpApplePropertyAttribute(raw_ostream &OS, uint64_t Val)
static void dumpRanges(const DWARFObject &Obj, raw_ostream &OS, const DWARFAddressRangesVector &Ranges, unsigned AddressSize, unsigned Indent, const DIDumpOptions &DumpOpts)
This file contains constants used for implementing Dwarf debug support.
BaseType
A given derived pointer can have multiple base pointers through phi/selects.
This file defines the SmallPtrSet class.
This file defines the SmallSet class.
Represent a constant reference to an array (0 or more elements consecutively in memory),...
A structured debug information entry.
size_t getNumAttributes() const
bool getAttrIsImplicitConstByIndex(uint32_t idx) const
dwarf::Attribute getAttrByIndex(uint32_t idx) const
int64_t getAttrImplicitConstValueByIndex(uint32_t idx) const
dwarf::Form getFormByIndex(uint32_t idx) const
DWARFContext This data structure is the top level entity that deals with dwarf debug information pars...
DWARFTypeUnit * getTypeUnitForHash(uint64_t Hash, bool IsDWO)
const DWARFObject & getDWARFObj() const
LLVM_ABI attribute_iterator & operator++()
attribute_iterator()=delete
Utility class that carries the DWARF compile/type unit and the debug info entry in an object.
LLVM_ABI void getFullName(raw_string_ostream &, std::string *OriginalFullName=nullptr) const
LLVM_ABI DWARFDie resolveTypeUnitReference() const
LLVM_ABI std::optional< uint64_t > getLocBaseAttribute() const
uint64_t getOffset() const
Get the absolute offset into the debug info or types section.
LLVM_ABI const char * getShortName() const
Return the DIE short name resolving DW_AT_specification or DW_AT_abstract_origin references if necess...
LLVM_ABI Expected< DWARFAddressRangesVector > getAddressRanges() const
Get the address ranges for this DIE.
LLVM_ABI DWARFDie getAttributeValueAsReferencedDie(dwarf::Attribute Attr) const
Extract the specified attribute from this DIE as the referenced DIE.
LLVM_ABI DWARFDie getParent() const
Get the parent of this DIE object.
LLVM_ABI std::optional< DWARFFormValue > find(dwarf::Attribute Attr) const
Extract the specified attribute from this DIE.
DWARFUnit * getDwarfUnit() const
const DWARFDebugInfoEntry * getDebugInfoEntry() const
LLVM_ABI const char * getSubroutineName(DINameKind Kind) const
If a DIE represents a subprogram (or inlined subroutine), returns its mangled name (or short name,...
LLVM_ABI DWARFDie getSibling() const
Get the sibling of this DIE object.
LLVM_ABI bool isSubroutineDIE() const
Returns true if DIE represents a subprogram or an inlined subroutine.
LLVM_ABI bool getLowAndHighPC(uint64_t &LowPC, uint64_t &HighPC, uint64_t &SectionIndex) const
Retrieves DW_AT_low_pc and DW_AT_high_pc from CU.
LLVM_ABI LLVM_DUMP_METHOD void dump() const
Convenience zero-argument overload for debugging.
LLVM_ABI void getCallerFrame(uint32_t &CallFile, uint32_t &CallLine, uint32_t &CallColumn, uint32_t &CallDiscriminator) const
Retrieves values of DW_AT_call_file, DW_AT_call_line and DW_AT_call_column from DIE (or zeroes if the...
LLVM_ABI bool isSubprogramDIE() const
Returns true if DIE represents a subprogram (not inlined).
LLVM_ABI bool addressRangeContainsAddress(const uint64_t Address) const
LLVM_ABI std::optional< DWARFFormValue > findRecursively(ArrayRef< dwarf::Attribute > Attrs) const
Extract the first value of any attribute in Attrs from this DIE and recurse into any DW_AT_specificat...
llvm::DWARFFormValue DWARFFormValue
LLVM_ABI std::optional< uint64_t > getHighPC(uint64_t LowPC) const
Get the DW_AT_high_pc attribute value as an address.
LLVM_ABI std::optional< uint64_t > getTypeSize(uint64_t PointerSize)
Gets the type size (in bytes) for this DIE.
LLVM_ABI DWARFDie resolveReferencedType(dwarf::Attribute Attr) const
LLVM_ABI const char * getName(DINameKind Kind) const
Return the DIE name resolving DW_AT_specification or DW_AT_abstract_origin references if necessary.
LLVM_ABI DWARFDie getLastChild() const
Get the last child of this DIE object.
LLVM_ABI DWARFDie getPreviousSibling() const
Get the previous sibling of this DIE object.
const DWARFAbbreviationDeclaration * getAbbreviationDeclarationPtr() const
Get the abbreviation declaration for this DIE.
LLVM_ABI std::string getDeclFile(DILineInfoSpecifier::FileLineInfoKind Kind) const
LLVM_ABI DWARFDie getFirstChild() const
Get the first child of this DIE object.
LLVM_ABI uint64_t getDeclLine() const
Returns the declaration line (start line) for a DIE, assuming it specifies a subprogram.
dwarf::Tag getTag() const
LLVM_ABI const char * getLinkageName() const
Return the DIE linkage name resolving DW_AT_specification or DW_AT_abstract_origin references if nece...
LLVM_ABI Expected< DWARFLocationExpressionsVector > getLocations(dwarf::Attribute Attr) const
LLVM_ABI std::optional< uint64_t > getRangesBaseAttribute() const
Extract the range base attribute from this DIE as absolute section offset.
bool isNULL() const
Returns true for a valid DIE that terminates a sibling chain.
LLVM_ABI std::optional< uint64_t > getLanguage() const
Returns the DW_LANG_ code for this DIE's DWARF unit, if it exists.
LLVM_ABI iterator_range< attribute_iterator > attributes() const
Get an iterator range to all attributes in the current DIE only.
LLVM_ABI void dump(raw_ostream &OS, unsigned indent=0, DIDumpOptions DumpOpts=DIDumpOptions()) const
Dump the DIE and all of its attributes to the supplied stream.
LLVM_ABI DWARFUnit * getUnitForOffset(uint64_t Offset) const
DWARFContext & getContext() const
DWARFDie getDIEForOffset(uint64_t Offset)
Return the DIE object for a given offset Offset inside the unit's DIE vector.
const DWARFUnitVector & getUnitVector() const
Return the DWARFUnitVector containing this unit.
Tagged union holding either a T or a Error.
A templated base class for SmallPtrSet which provides the typesafe interface that is common across al...
std::pair< iterator, bool > insert(PtrType Ptr)
Inserts Ptr if and only if there is no element in the container equal to Ptr.
SmallPtrSet - This class implements a set which is optimized for holding SmallSize or less elements.
SmallSet - This maintains a set of unique values, optimizing for the case when the set is small (less...
std::pair< const_iterator, bool > insert(const T &V)
insert - Insert an element into the set if it isn't already there.
void push_back(const T &Elt)
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
Represent a constant reference to a string, i.e.
constexpr bool empty() const
Check if the string is empty.
LLVM Value Representation.
An RAII object that temporarily switches an output stream to a specific color.
A range adaptor for a pair of iterators.
This class implements an extremely fast bulk output stream that can only output to a stream.
raw_ostream & indent(unsigned NumSpaces)
indent - Insert 'NumSpaces' spaces.
A raw_ostream that writes to an std::string.
LLVM_ABI StringRef AttributeString(unsigned Attribute)
LLVM_ABI StringRef FormEncodingString(unsigned Encoding)
LLVM_ABI StringRef ApplePropertyString(unsigned)
Calculates the starting offsets for various sections within the .debug_names section.
std::optional< const char * > toString(const std::optional< DWARFFormValue > &V)
Take an optional DWARFFormValue and try to extract a string value from it.
std::optional< object::SectionedAddress > toSectionedAddress(const std::optional< DWARFFormValue > &V)
std::optional< SourceLanguage > toDW_LANG(SourceLanguageName name, uint32_t version)
Convert a DWARF 6 pair of language name and version to a DWARF 5 DW_LANG.
std::optional< uint64_t > toSectionOffset(const std::optional< DWARFFormValue > &V)
Take an optional DWARFFormValue and try to extract an section offset.
LLVM_ABI StringRef AttributeValueString(uint16_t Attr, unsigned Val)
Returns the symbolic string representing Val when used as a value for attribute Attr.
uint64_t computeTombstoneAddress(uint8_t AddressByteSize)
LLVM_ABI llvm::StringRef LanguageDescription(SourceLanguageName name)
Returns a version-independent language name.
std::optional< uint64_t > toUnsigned(const std::optional< DWARFFormValue > &V)
Take an optional DWARFFormValue and try to extract an unsigned constant.
This is an optimization pass for GlobalISel generic memory operations.
LLVM_ABI std::error_code inconvertibleErrorCode()
The value returned by this function can be returned from convertToErrorCode for Error values where no...
LLVM_ABI void printDwarfExpression(const DWARFExpression *E, raw_ostream &OS, DIDumpOptions DumpOpts, DWARFUnit *U, bool IsEH=false)
Print a Dwarf expression/.
iterator_range< T > make_range(T x, T y)
Convenience function for iterating over sub-ranges.
Error createStringError(std::error_code EC, char const *Fmt, const Ts &... Vals)
Create formatted StringError object.
int countr_zero(T Val)
Count number of 0's from the least significant bit to the most stopping at the first 1.
auto formatv(bool Validate, const char *Fmt, Ts &&...Vals)
SmallVector< ValueTypeFromRangeType< R >, Size > to_vector(R &&Range)
Given a range of type R, iterate the entire range and return a SmallVector with elements of the vecto...
LLVM_ABI raw_fd_ostream & errs()
This returns a reference to a raw_ostream for standard error.
LLVM_ABI void dumpTypeQualifiedName(const DWARFDie &DIE, raw_ostream &OS)
DINameKind
A DINameKind is passed to name search methods to specify a preference regarding the type of name reso...
std::string toString(const APInt &I, unsigned Radix, bool Signed, bool formatAsCLiteral=false, bool UpperCase=true, bool InsertSeparators=false)
bool is_contained(R &&Range, const E &Element)
Returns true if Element is found in Range.
LLVM_ABI void dumpTypeUnqualifiedName(const DWARFDie &DIE, raw_ostream &OS, std::string *OriginalFullName=nullptr)
void consumeError(Error Err)
Consume a Error without doing anything.
std::vector< DWARFAddressRange > DWARFAddressRangesVector
DWARFAddressRangesVector - represents a set of absolute address ranges.
std::vector< DWARFLocationExpression > DWARFLocationExpressionsVector
Represents a set of absolute location expressions.
Container for dump options that control which debug information will be dumped.
std::function< void(Error)> RecoverableErrorHandler
llvm::SmallVector< unsigned, 0 > FilterChildTag
List of DWARF tags to filter children by.
StringRef getNameForDWARFAddressSpace(uint64_t AS) const
unsigned ChildRecurseDepth
unsigned ParentRecurseDepth
Encapsulates a DWARF attribute value and all of the data required to describe the attribute value.
static LLVM_ABI bool mayHaveLocationList(dwarf::Attribute Attr)
Identify DWARF attributes that may contain a pointer to a location list.
DWARFFormValue Value
The form and value for this attribute.
static LLVM_ABI bool mayHaveLocationExpr(dwarf::Attribute Attr)
Identifies DWARF attributes that may contain a reference to a DWARF expression.
dwarf::Attribute Attr
The attribute enumeration of this attribute.
Represents a single DWARF expression, whose value is location-dependent.
void appendQualifiedName(DieType D)
void appendUnqualifiedName(DieType D, std::string *OriginalFullName=nullptr)
Recursively append the DIE type name when applicable.