mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 00:21:03 +00:00
Quick build fix for c++03 clang. This needs a proper solution. Note that these offsets are guaranteed to be correct by Endian.h.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169438 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -277,26 +277,26 @@ void llvm::printCOFFUnwindInfo(const COFFObjectFile *Obj) {
|
|||||||
|
|
||||||
outs() << " Start Address: ";
|
outs() << " Start Address: ";
|
||||||
printCOFFSymbolAddress(outs(), Rels, SectionOffset +
|
printCOFFSymbolAddress(outs(), Rels, SectionOffset +
|
||||||
offsetof(RuntimeFunction, StartAddress),
|
/*offsetof(RuntimeFunction, StartAddress)*/ 0,
|
||||||
I->StartAddress);
|
I->StartAddress);
|
||||||
outs() << "\n";
|
outs() << "\n";
|
||||||
|
|
||||||
outs() << " End Address: ";
|
outs() << " End Address: ";
|
||||||
printCOFFSymbolAddress(outs(), Rels, SectionOffset +
|
printCOFFSymbolAddress(outs(), Rels, SectionOffset +
|
||||||
offsetof(RuntimeFunction, EndAddress),
|
/*offsetof(RuntimeFunction, EndAddress)*/ 4,
|
||||||
I->EndAddress);
|
I->EndAddress);
|
||||||
outs() << "\n";
|
outs() << "\n";
|
||||||
|
|
||||||
outs() << " Unwind Info Address: ";
|
outs() << " Unwind Info Address: ";
|
||||||
printCOFFSymbolAddress(outs(), Rels, SectionOffset +
|
printCOFFSymbolAddress(outs(), Rels, SectionOffset +
|
||||||
offsetof(RuntimeFunction, UnwindInfoOffset),
|
/*offsetof(RuntimeFunction, UnwindInfoOffset)*/ 8,
|
||||||
I->UnwindInfoOffset);
|
I->UnwindInfoOffset);
|
||||||
outs() << "\n";
|
outs() << "\n";
|
||||||
|
|
||||||
ArrayRef<uint8_t> XContents;
|
ArrayRef<uint8_t> XContents;
|
||||||
uint64_t UnwindInfoOffset = 0;
|
uint64_t UnwindInfoOffset = 0;
|
||||||
if (error(getSectionContents(Obj, Rels, SectionOffset +
|
if (error(getSectionContents(Obj, Rels, SectionOffset +
|
||||||
offsetof(RuntimeFunction, UnwindInfoOffset),
|
/*offsetof(RuntimeFunction, UnwindInfoOffset)*/ 8,
|
||||||
XContents, UnwindInfoOffset))) continue;
|
XContents, UnwindInfoOffset))) continue;
|
||||||
if (XContents.empty()) continue;
|
if (XContents.empty()) continue;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user