}
void DWARFContext::parseCompileUnits() {
- CUs.parse(*this, getInfoSection().Data, getInfoSection().Relocs);
+ CUs.parse(*this, getInfoSection());
}
void DWARFContext::parseTypeUnits() {
return;
for (const auto &I : getTypesSections()) {
TUs.push_back(DWARFUnitSection<DWARFTypeUnit>());
- TUs.back().parse(*this, I.second.Data, I.second.Relocs);
+ TUs.back().parse(*this, I.second);
}
}
void DWARFContext::parseDWOCompileUnits() {
- DWOCUs.parseDWO(*this, getInfoDWOSection().Data, getInfoDWOSection().Relocs);
+ DWOCUs.parseDWO(*this, getInfoDWOSection());
}
void DWARFContext::parseDWOTypeUnits() {
return;
for (const auto &I : getTypesDWOSections()) {
DWOTUs.push_back(DWARFUnitSection<DWARFTypeUnit>());
- DWOTUs.back().parseDWO(*this, I.second.Data, I.second.Relocs);
+ DWOTUs.back().parseDWO(*this, I.second);
}
}
Sym->getAddress(SymAddr);
}
- object::RelocVisitor V(Obj.getFileFormatName());
+ object::RelocVisitor V(Obj);
// The section address is always 0 for debug sections.
object::RelocToApply R(V.visit(Type, Reloc, 0, SymAddr));
if (V.error()) {