9 #ifndef LLVM_DWARFLINKER_DWARFLINKER_H 10 #define LLVM_DWARFLINKER_DWARFLINKER_H 35 : HighPC(EndPC), Offset(Offset) {}
41 using RangesTy = std::map<uint64_t, ObjFileAddressRange>;
54 virtual bool areRelocationsResolved()
const = 0;
58 virtual bool hasValidRelocs(
bool ResetRelocsPtr =
true) = 0;
66 virtual bool hasValidRelocationAt(uint64_t StartOffset, uint64_t EndOffset,
76 bool IsLittleEndian) = 0;
80 virtual RangesTy &getValidAddressRanges() = 0;
83 virtual void clear() = 0;
92 virtual void emitPaperTrailWarningsDie(
const Triple &
Triple,
DIE &Die) = 0;
101 emitAbbrevs(
const std::vector<std::unique_ptr<DIEAbbrev>> &Abbrevs,
102 unsigned DwarfVersion) = 0;
129 virtual void emitRangesEntries(
130 int64_t UnitPcOffset, uint64_t OrigLowPc,
132 const std::vector<DWARFDebugRangeList::RangeListEntry> &Entries,
133 unsigned AddressSize) = 0;
138 virtual void emitUnitRangesEntries(
CompileUnit &Unit,
139 bool DoRangesSection) = 0;
148 unsigned MinInstLength,
149 std::vector<DWARFDebugLine::Row> &Rows,
150 unsigned AdddressSize) = 0;
153 virtual void emitPubNamesForUnit(
const CompileUnit &Unit) = 0;
156 virtual void emitPubTypesForUnit(
const CompileUnit &Unit) = 0;
159 virtual void emitCIE(
StringRef CIEBytes) = 0;
168 virtual void emitLocationsForUnit(
178 virtual void emitCompileUnitHeader(
CompileUnit &Unit) = 0;
181 virtual void emitDIE(
DIE &Die) = 0;
184 virtual uint64_t getLineSectionSize()
const = 0;
187 virtual uint64_t getFrameSectionSize()
const = 0;
190 virtual uint64_t getRangesSectionSize()
const = 0;
193 virtual uint64_t getDebugInfoSectionSize()
const = 0;
198 #endif // LLVM_DWARFLINKER_DWARFLINKER_H uint64_t HighPC
Function HighPC.
This class represents lattice values for constants.
Stores all information relating to a compile unit, be it in its original instance in the object file ...
This class holds an abstract representation of an Accelerator Table, consisting of a sequence of buck...
This class is the base class for all object file types.
AddressesMap represents information about valid addresses used by debug information.
Analysis containing CSE Info
int64_t Offset
Offset to apply to the linked address.
MutableArrayRef - Represent a mutable reference to an array (0 or more elements consecutively in memo...
A structured debug information entry.
ObjFileAddressRange(uint64_t EndPC, int64_t Offset)
Triple - Helper class for working with autoconf configuration names.
DWARFContext This data structure is the top level entity that deals with dwarf debug information pars...
static void clear(coro::Shape &Shape)
std::map< uint64_t, ObjFileAddressRange > RangesTy
Map LowPC to ObjFileAddressRange.
A string table that doesn't need relocations.
print Print MemDeps of function
StringRef - Represent a constant reference to a string, i.e.
Information gathered about a DIE in the object file.
DwarfEmitter presents interface to generate all debug info tables.