LLVM
15.0.0git
|
#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/DWARFDebugLine.h"
#include "llvm/DebugInfo/DWARF/DWARFDebugLoc.h"
#include "llvm/DebugInfo/DWARF/DWARFExpression.h"
#include "llvm/DebugInfo/DWARF/DWARFFormValue.h"
#include "llvm/DebugInfo/DWARF/DWARFTypePrinter.h"
#include "llvm/DebugInfo/DWARF/DWARFTypeUnit.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 <cassert>
#include <cinttypes>
#include <cstdint>
#include <string>
#include <utility>
Go to the source code of this file.
Namespaces | |
llvm | |
This is an optimization pass for GlobalISel generic memory operations. | |
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 | dumpLocationList (raw_ostream &OS, const DWARFFormValue &FormValue, DWARFUnit *U, unsigned Indent, DIDumpOptions DumpOpts) |
static void | dumpLocationExpr (raw_ostream &OS, const DWARFFormValue &FormValue, DWARFUnit *U, unsigned Indent, DIDumpOptions DumpOpts) |
static DWARFDie | resolveReferencedType (DWARFDie D, DWARFFormValue F) |
static void | dumpAttribute (raw_ostream &OS, const DWARFDie &Die, const DWARFAttribute &AttrValue, unsigned Indent, 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. More... | |
void | llvm::dumpTypeQualifiedName (const DWARFDie &DIE, raw_ostream &OS) |
void | llvm::dumpTypeUnqualifiedName (const DWARFDie &DIE, raw_ostream &OS, std::string *OriginalFullName=nullptr) |
|
static |
Definition at line 41 of file DWARFDie.cpp.
References llvm::dwarf::ApplePropertyString(), assert(), llvm::tgtok::Bit, llvm::countTrailingZeros(), llvm::format(), and Shift.
Referenced by dumpAttribute().
|
static |
Definition at line 114 of file DWARFDie.cpp.
References llvm::DILineInfoSpecifier::AbsoluteFilePath, llvm::DWARFAttribute::Attr, llvm::Attribute, llvm::dwarf::AttributeValueString(), llvm::dwarf::computeTombstoneAddress(), llvm::DWARFFormValue::createFromUValue(), llvm::createStringError(), D, llvm::DWARFFormValue::dump(), llvm::DWARFFormValue::dumpAddress(), dumpApplePropertyAttribute(), dumpLocationExpr(), dumpLocationList(), dumpRanges(), llvm::dumpTypeQualifiedName(), llvm::Enumerator, llvm::DWARFFormValue::FC_Block, llvm::DWARFFormValue::FC_Exprloc, llvm::DWARFFormValue::FC_SectionOffset, llvm::formatv(), llvm::DWARFUnit::getAddressByteSize(), llvm::DWARFDie::getAddressRanges(), llvm::DWARFFormValue::getAsAddress(), llvm::DWARFFormValue::getAsSectionOffset(), llvm::DWARFFormValue::getAsUnsignedConstant(), llvm::DWARFDie::getAttributeValueAsReferencedDie(), llvm::DWARFUnit::getCompilationDir(), llvm::DWARFUnit::getContext(), llvm::DWARFContext::getDWARFObj(), llvm::DWARFDie::getDwarfUnit(), llvm::DWARFFormValue::getForm(), llvm::DWARFContext::getLineTableForUnit(), llvm::DWARFDie::getLowAndHighPC(), llvm::DWARFDie::getName(), llvm::DWARFUnit::getRnglistOffset(), llvm::raw_ostream::indent(), llvm::invalid_argument, llvm::DWARFFormValue::isFormClass(), llvm::DWARFDie::isValid(), llvm::LinkageName, llvm::AArch64CC::LT, llvm::DWARFAttribute::mayHaveLocationExpr(), llvm::DWARFAttribute::mayHaveLocationList(), llvm::DIDumpOptions::RecoverableErrorHandler, resolveReferencedType(), llvm::DIDumpOptions::ShowAddresses, llvm::DIDumpOptions::ShowForm, llvm::String, llvm::dwarf::toString(), llvm::DWARFAttribute::Value, and llvm::DIDumpOptions::Verbose.
Referenced by llvm::DWARFDie::dump().
|
static |
Definition at line 95 of file DWARFDie.cpp.
References assert(), llvm::Data, llvm::ArrayRef< T >::data(), llvm::DWARFFormValue::FC_Block, llvm::DWARFFormValue::FC_Exprloc, llvm::dwarf::FormParams::Format, llvm::DWARFUnit::getAddressByteSize(), llvm::DWARFFormValue::getAsBlock(), llvm::DWARFUnit::getContext(), llvm::DWARFUnit::getFormParams(), llvm::DWARFContext::getRegisterInfo(), llvm::DWARFFormValue::isFormClass(), llvm::DWARFContext::isLittleEndian(), MRI, llvm::DWARFExpression::print(), and llvm::ArrayRef< T >::size().
Referenced by dumpAttribute().
|
static |
Definition at line 73 of file DWARFDie.cpp.
References assert(), llvm::DWARFFormValue::dump(), llvm::DWARFLocationTable::dumpLocationList(), llvm::DWARFFormValue::FC_SectionOffset, llvm::DWARFFormValue::getAsSectionOffset(), llvm::DWARFUnit::getBaseAddress(), llvm::DWARFUnit::getContext(), llvm::DWARFContext::getDWARFObj(), llvm::DWARFFormValue::getForm(), llvm::DWARFUnit::getLocationTable(), llvm::DWARFUnit::getLoclistOffset(), llvm::DWARFContext::getRegisterInfo(), llvm::DWARFFormValue::isFormClass(), and MRI.
Referenced by dumpAttribute().
|
static |
Helper to dump a DIE with all of its parents, but no siblings.
Definition at line 549 of file DWARFDie.cpp.
References llvm::Depth, llvm::DWARFDie::dump(), llvm::DWARFDie::getParent(), and llvm::DIDumpOptions::ParentRecurseDepth.
Referenced by llvm::DWARFDie::dump().
|
static |
Definition at line 59 of file DWARFDie.cpp.
References llvm::raw_ostream::indent(), and llvm::DIDumpOptions::ShowAddresses.
Referenced by dumpAttribute().
|
static |