|
LLVM
7.0.0
|
#include "llvm/DebugInfo/DWARF/DWARFDie.h"#include "llvm/ADT/None.h"#include "llvm/ADT/Optional.h"#include "llvm/ADT/SmallSet.h"#include "llvm/ADT/StringRef.h"#include "llvm/BinaryFormat/Dwarf.h"#include "llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h"#include "llvm/DebugInfo/DWARF/DWARFContext.h"#include "llvm/DebugInfo/DWARF/DWARFDebugRangeList.h"#include "llvm/DebugInfo/DWARF/DWARFExpression.h"#include "llvm/DebugInfo/DWARF/DWARFFormValue.h"#include "llvm/DebugInfo/DWARF/DWARFUnit.h"#include "llvm/Object/ObjectFile.h"#include "llvm/Support/DataExtractor.h"#include "llvm/Support/Format.h"#include "llvm/Support/FormatVariadic.h"#include "llvm/Support/MathExtras.h"#include "llvm/Support/WithColor.h"#include "llvm/Support/raw_ostream.h"#include <algorithm>#include <cassert>#include <cinttypes>#include <cstdint>#include <string>#include <utility>Go to the source code of this file.
Functions | |
| 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) |
| static void | dumpLocation (raw_ostream &OS, DWARFFormValue &FormValue, DWARFUnit *U, unsigned Indent, DIDumpOptions DumpOpts) |
| static void | dumpTypeTagName (raw_ostream &OS, dwarf::Tag T) |
| Dump the name encoded in the type tag. More... | |
| static void | dumpTypeName (raw_ostream &OS, const DWARFDie &Die) |
| Recursively dump the DIE type name when applicable. More... | |
| static void | dumpAttribute (raw_ostream &OS, const DWARFDie &Die, uint32_t *OffsetPtr, dwarf::Attribute Attr, dwarf::Form Form, unsigned Indent, DIDumpOptions DumpOpts) |
| static unsigned | dumpParentChain (DWARFDie Die, raw_ostream &OS, unsigned Indent, DIDumpOptions DumpOpts) |
| Helper to dump a DIE with all of its parents, but no siblings. More... | |
|
static |
Definition at line 40 of file DWARFDie.cpp.
References llvm::dwarf::ApplePropertyString(), assert(), llvm::tgtok::Bit, llvm::countTrailingZeros(), and llvm::format().
Referenced by dumpAttribute().
|
static |
Definition at line 187 of file DWARFDie.cpp.
References llvm::DILineInfoSpecifier::AbsoluteFilePath, llvm::Attribute, llvm::dwarf::AttributeValueString(), llvm::DWARFFormValue::dump(), dumpApplePropertyAttribute(), dumpLocation(), dumpRanges(), dumpTypeName(), llvm::StringRef::empty(), llvm::Enumerator, llvm::WithColor::error(), llvm::DWARFFormValue::extractValue(), llvm::ARMBuildAttrs::File, llvm::DWARFDie::find(), llvm::format(), llvm::formatv(), llvm::DWARFUnit::getAddressByteSize(), llvm::DWARFDie::getAddressRanges(), llvm::DWARFFormValue::getAsSectionOffset(), llvm::DWARFFormValue::getAsUnsignedConstant(), llvm::DWARFDie::getAttributeValueAsReferencedDie(), llvm::DWARFUnit::getCompilationDir(), llvm::DWARFUnit::getContext(), llvm::DWARFUnit::getDebugInfoExtractor(), llvm::DWARFContext::getDWARFObj(), llvm::DWARFDie::getDwarfUnit(), llvm::DWARFFormValue::getForm(), llvm::DWARFUnit::getFormParams(), llvm::DWARFContext::getLineTableForUnit(), llvm::DWARFDie::getLowAndHighPC(), llvm::DWARFDie::getName(), llvm::DWARFUnit::getRnglistOffset(), llvm::Optional< T >::getValue(), llvm::raw_ostream::indent(), llvm::DWARFDie::isValid(), llvm::LinkageName, llvm::AArch64CC::LT, llvm::DWARFFormValue::setUValue(), llvm::DIDumpOptions::ShowAddresses, llvm::DIDumpOptions::ShowForm, llvm::String, llvm::dwarf::toString(), and llvm::DIDumpOptions::Verbose.
Referenced by llvm::DWARFDie::dump().
|
static |
Definition at line 84 of file DWARFDie.cpp.
References llvm::DWARFSection::Data, llvm::Data, llvm::ArrayRef< T >::data(), llvm::DWARFFormValue::dump(), llvm::StringRef::empty(), llvm::DWARFFormValue::FC_Block, llvm::DWARFFormValue::FC_Exprloc, llvm::DWARFFormValue::FC_SectionOffset, llvm::DWARFUnit::getAddressByteSize(), llvm::DWARFObject::getAddressSize(), llvm::DWARFFormValue::getAsBlock(), llvm::DWARFFormValue::getAsSectionOffset(), llvm::DWARFUnit::getBaseAddress(), llvm::DWARFUnit::getContext(), llvm::DWARFContext::getDWARFObj(), llvm::DWARFObject::getLocDWOSection(), llvm::DWARFObject::getLocSection(), llvm::DWARFContext::getRegisterInfo(), llvm::DWARFUnit::getVersion(), Indent, llvm::DWARFFormValue::isFormClass(), llvm::DWARFContext::isLittleEndian(), MRI, llvm::DWARFDebugLoc::parseOneLocationList(), llvm::DWARFDebugLocDWO::parseOneLocationList(), print(), and llvm::ArrayRef< T >::size().
Referenced by dumpAttribute().
|
static |
Helper to dump a DIE with all of its parents, but no siblings.
Definition at line 473 of file DWARFDie.cpp.
References llvm::DWARFDie::dump(), llvm::DWARFDie::getParent(), and Indent.
Referenced by llvm::DWARFDie::dump().
|
static |
Definition at line 58 of file DWARFDie.cpp.
References llvm::ArrayRef< T >::empty(), llvm::format(), llvm::DWARFObject::getSectionNames(), llvm::raw_ostream::indent(), and llvm::DIDumpOptions::Verbose.
Referenced by dumpAttribute().
|
static |
Recursively dump the DIE type name when applicable.
Definition at line 138 of file DWARFDie.cpp.
References D, dumpTypeTagName(), llvm::DWARFDie::getAttributeValueAsReferencedDie(), llvm::DWARFDie::getName(), llvm::DWARFDie::getTag(), llvm::DWARFDie::isValid(), and llvm::LinkageName.
Referenced by dumpAttribute().
|
static |
Dump the name encoded in the type tag.
Definition at line 130 of file DWARFDie.cpp.
References llvm::StringRef::endswith(), llvm::StringRef::size(), llvm::StringRef::startswith(), llvm::StringRef::substr(), and llvm::dwarf::TagString().
Referenced by dumpTypeName().
1.8.13