LLVM
8.0.1
|
#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.
|
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 149 of file DWARFDie.cpp.
References C, llvm::DWARFDie::children(), llvm::DWARFDie::find(), llvm::DWARFDie::getDwarfUnit(), llvm::DWARFUnit::getUnitDIE(), llvm::dwarf::LanguageLowerBound(), and llvm::None.
Referenced by dumpTypeName().
|
static |
Definition at line 267 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::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, Name, llvm::DWARFFormValue::setUValue(), llvm::DIDumpOptions::ShowAddresses, llvm::DIDumpOptions::ShowForm, Space, llvm::String, llvm::dwarf::toString(), and llvm::DIDumpOptions::Verbose.
Referenced by llvm::DWARFDie::dump().
|
static |
Definition at line 78 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::getLoclistsSection(), llvm::DWARFUnit::getLocSection(), llvm::DWARFUnit::getLocSectionData(), llvm::DWARFContext::getRegisterInfo(), llvm::DWARFUnit::getVersion(), if(), Indent, llvm::DWARFUnit::isDWOUnit(), llvm::DWARFFormValue::isFormClass(), llvm::DWARFContext::isLittleEndian(), MRI, llvm::DWARFDebugLoc::parseOneLocationList(), llvm::DWARFDebugLoclists::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 562 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::DWARFFormValue::dumpAddressSection(), llvm::DWARFObject::getSectionNames(), llvm::raw_ostream::indent(), llvm::DIDumpOptions::ShowAddresses, and llvm::DIDumpOptions::Verbose.
Referenced by dumpAttribute().
|
static |
Recursively dump the DIE type name when applicable.
Definition at line 196 of file DWARFDie.cpp.
References C, llvm::DWARFDie::children(), dumpArrayType(), dumpTypeTagName(), llvm::DWARFDie::getAttributeValueAsReferencedDie(), llvm::DWARFDie::getName(), llvm::DWARFDie::getTag(), llvm::DWARFDie::isValid(), llvm::LinkageName, and Name.
Referenced by dumpAttribute().
|
static |
Dump the name encoded in the type tag.
Definition at line 142 of file DWARFDie.cpp.
References llvm::StringRef::endswith(), llvm::StringRef::size(), llvm::StringRef::startswith(), llvm::StringRef::substr(), and llvm::dwarf::TagString().
Referenced by dumpTypeName().