StringRef getFileNameForFileOffset(uint32_t FileOffset);
void printFileNameForOffset(StringRef Label, uint32_t FileOffset);
void printTypeIndex(StringRef FieldName, TypeIndex TI);
- void printLocalVariableAddrRange(const LocalVariableAddrRange &Range);
+ void printLocalVariableAddrRange(const LocalVariableAddrRange &Range,
+ const coff_section *Sec,
+ StringRef SectionContents);
void printLocalVariableAddrGap(const LocalVariableAddrGap &Gap);
void printCodeViewSymbolsSubsection(StringRef Subsection,
error(consumeObject(SymData, DefRangeRegister));
W.printNumber("Register", DefRangeRegister->Register);
W.printNumber("MayHaveNoName", DefRangeRegister->MayHaveNoName);
- printLocalVariableAddrRange(DefRangeRegister->Range);
+ printLocalVariableAddrRange(DefRangeRegister->Range, Sec,
+ SectionContents);
while (!SymData.empty()) {
const LocalVariableAddrGap *Gap;
error(consumeObject(SymData, Gap));
DefRangeSubfieldRegisterSym->MayHaveNoName);
W.printNumber("OffsetInParent",
DefRangeSubfieldRegisterSym->OffsetInParent);
- printLocalVariableAddrRange(DefRangeSubfieldRegisterSym->Range);
+ printLocalVariableAddrRange(DefRangeSubfieldRegisterSym->Range, Sec,
+ SectionContents);
while (!SymData.empty()) {
const LocalVariableAddrGap *Gap;
error(consumeObject(SymData, Gap));
const DefRangeFramePointerRelSym *DefRangeFramePointerRel;
error(consumeObject(SymData, DefRangeFramePointerRel));
W.printNumber("Offset", DefRangeFramePointerRel->Offset);
- printLocalVariableAddrRange(DefRangeFramePointerRel->Range);
+ printLocalVariableAddrRange(DefRangeFramePointerRel->Range, Sec,
+ SectionContents);
while (!SymData.empty()) {
const LocalVariableAddrGap *Gap;
error(consumeObject(SymData, Gap));
W.printBoolean("HasSpilledUDTMember",
DefRangeRegisterRel->hasSpilledUDTMember());
W.printNumber("OffsetInParent", DefRangeRegisterRel->offsetInParent());
- printLocalVariableAddrRange(DefRangeRegisterRel->Range);
+ printLocalVariableAddrRange(DefRangeRegisterRel->Range, Sec,
+ SectionContents);
while (!SymData.empty()) {
const LocalVariableAddrGap *Gap;
error(consumeObject(SymData, Gap));
}
void COFFDumper::printLocalVariableAddrRange(
- const LocalVariableAddrRange &Range) {
- W.printNumber("OffsetStart", Range.OffsetStart);
- W.printNumber("ISectStart", Range.ISectStart);
+ const LocalVariableAddrRange &Range, const coff_section *Sec,
+ StringRef SectionContents) {
+ printRelocatedField("OffsetStart", Sec, SectionContents, &Range.OffsetStart);
+ W.printHex("ISectStart", Range.ISectStart);
W.printNumber("Range", Range.Range);
}