19 using namespace dwarf;
23 : GnuStyle(GnuStyle) {
28 Set &SetData = Sets.back();
35 while (Offset < Data.
size()) {
39 uint8_t IndexEntryValue = GnuStyle ? PubNames.
getU8(&Offset) : 0;
48 for (
const Set &S : Sets) {
49 OS <<
"length = " <<
format(
"0x%08x", S.Length);
50 OS <<
" version = " <<
format(
"0x%04x", S.Version);
51 OS <<
" unit_offset = " <<
format(
"0x%08x", S.Offset);
52 OS <<
" unit_size = " <<
format(
"0x%08x", S.Size) <<
'\n';
53 OS << (GnuStyle ?
"Offset Linkage Kind Name\n" 56 for (
const Entry &
E : S.Entries) {
62 OS <<
format(
"%-8s", EntryLinkage.
data()) <<
' ' 65 OS <<
'\"' << E.
Name <<
"\"\n";
Compute iterated dominance frontiers using a linear time algorithm.
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE size_t size() const
size - Get the string size.
format_object< Ts... > format(const char *Fmt, const Ts &... Vals)
These are helper functions used to produce formatted output.
void dump(raw_ostream &OS) const
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE const char * data() const
data - Get a pointer to the start of the string (which may not be null terminated).
Each table consists of sets of variable length entries.
Describes an entry of the various gnu_pub* debug sections.
StringRef GDBIndexEntryKindString(GDBIndexEntryKind Kind)
uint32_t Size
The size in bytes of the contents of the .debug_info section generated to represent that compilation ...
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
uint32_t Length
The total length of the entries for that set, not including the length field itself.
StringRef GDBIndexEntryLinkageString(GDBIndexEntryLinkage Linkage)
GDBIndexEntryLinkage Linkage
DWARFDebugPubTable(StringRef Data, bool LittleEndian, bool GnuStyle)
uint32_t Offset
The offset from the beginning of the .debug_info section of the compilation unit header referenced by...
uint32_t SecOffset
Section offset from the beginning of the compilation unit.
This file contains constants used for implementing Dwarf debug support.
std::vector< Entry > Entries
dwarf::PubIndexEntryDescriptor Descriptor
An entry of the various gnu_pub* debug sections.
uint16_t Version
This number is specific to the name lookup table and is independent of the DWARF version number...
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.
StringRef Name
The name of the object as given by the DW_AT_name attribute of the referenced DIE.