LLVM  13.0.0git
Functions
DWARFDie.cpp File Reference
#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/FormatAdapters.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>
Include dependency graph for DWARFDie.cpp:

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, const 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 dumpArrayType (raw_ostream &OS, const DWARFDie &D)
 

Function Documentation

◆ dumpApplePropertyAttribute()

static void dumpApplePropertyAttribute ( raw_ostream OS,
uint64_t  Val 
)
static

◆ dumpArrayType()

static void dumpArrayType ( raw_ostream OS,
const DWARFDie D 
)
static

Definition at line 115 of file DWARFDie.cpp.

References D, llvm::dwarf::LanguageLowerBound(), and llvm::None.

◆ dumpLocation()

static void dumpLocation ( raw_ostream OS,
const DWARFFormValue FormValue,
DWARFUnit U,
unsigned  Indent,
DIDumpOptions  DumpOpts 
)
static

◆ dumpRanges()

static void dumpRanges ( const DWARFObject Obj,
raw_ostream OS,
const DWARFAddressRangesVector Ranges,
unsigned  AddressSize,
unsigned  Indent,
const DIDumpOptions DumpOpts 
)
static

Definition at line 58 of file DWARFDie.cpp.

References llvm::raw_ostream::indent(), and llvm::DIDumpOptions::ShowAddresses.

◆ dumpTypeTagName()

static void dumpTypeTagName ( raw_ostream OS,
dwarf::Tag  T 
)
static

Dump the name encoded in the type tag.

Definition at line 108 of file DWARFDie.cpp.

References llvm::StringRef::endswith(), llvm::StringRef::size(), llvm::StringRef::startswith(), llvm::StringRef::substr(), T, and llvm::dwarf::TagString().