19 using namespace dwarf;
23 bool LittleEndian,
bool GnuStyle)
24 : GnuStyle(GnuStyle) {
29 Set &SetData = Sets.back();
40 uint8_t IndexEntryValue = GnuStyle ? PubNames.
getU8(&Offset) : 0;
49 for (
const Set &S : Sets) {
50 OS <<
"length = " <<
format(
"0x%08x", S.Length);
51 OS <<
" version = " <<
format(
"0x%04x", S.Version);
52 OS <<
" unit_offset = " <<
format(
"0x%08" PRIx64, S.Offset);
53 OS <<
" unit_size = " <<
format(
"0x%08x", S.Size) <<
'\n';
54 OS << (GnuStyle ?
"Offset Linkage Kind Name\n" 57 for (
const Entry &
E : S.Entries) {
63 OS <<
format(
"%-8s", EntryLinkage.
data()) <<
' ' 66 OS <<
'\"' << E.
Name <<
"\"\n";
This class represents lattice values for constants.
amdgpu Simplify well known AMD library false FunctionCallee Value const Twine & Name
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
uint64_t Offset
The offset from the beginning of the .debug_info section of the compilation unit header referenced by...
Each table consists of sets of variable length entries.
DWARFDebugPubTable(const DWARFObject &Obj, const DWARFSection &Sec, bool LittleEndian, bool GnuStyle)
Describes an entry of the various gnu_pub* debug sections.
LLVM_NODISCARD size_t size() const
size - Get the string size.
StringRef GDBIndexEntryKindString(GDBIndexEntryKind Kind)
uint64_t SecOffset
Section offset from the beginning of the compilation unit.
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
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.
LLVM_NODISCARD const char * data() const
data - Get a pointer to the start of the string (which may not be null terminated).
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.