Context = createContext();
assert(Context != nullptr && "test state is not valid");
const DWARFObject &Obj = Context->getDWARFObj();
- LineData = DWARFDataExtractor(Obj, Obj.getLineSection(), true, 8);
+ LineData = DWARFDataExtractor(Obj, Obj.getLineSection(),
+ sys::IsLittleEndianHost, 8);
}
std::unique_ptr<DWARFContext> createContext() {
dwarfgen::LineTable &dwarfgen::Generator::addLineTable(DwarfFormat Format) {
LineTables.push_back(
- make_unique<LineTable>(*this, Version, Format, Asm->getPointerSize()));
+ make_unique<LineTable>(Version, Format, Asm->getPointerSize()));
return *LineTables.back();
}
ValueLength Length;
};
- LineTable(Generator &DG, uint16_t Version, dwarf::DwarfFormat Format,
- uint8_t AddrSize, uint8_t SegSize = 0)
- : DG(DG), Version(Version), Format(Format), AddrSize(AddrSize),
- SegSize(SegSize) {
+ LineTable(uint16_t Version, dwarf::DwarfFormat Format, uint8_t AddrSize,
+ uint8_t SegSize = 0)
+ : Version(Version), Format(Format), AddrSize(AddrSize), SegSize(SegSize) {
assert(Version >= 2 && Version <= 5 && "unsupported version");
}
void writeProloguePayload(const DWARFDebugLine::Prologue &Prologue,
AsmPrinter &Asm) const;
- LLVM_ATTRIBUTE_UNUSED Generator &DG;
llvm::Optional<DWARFDebugLine::Prologue> Prologue;
std::vector<ValueAndLength> CustomPrologue;
std::vector<ValueAndLength> Contents;