diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2012-12-05 22:38:01 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2012-12-05 22:38:01 +0000 |
commit | 1246700d1b5eb5aea5826b6ceed01e3a67ca9a28 (patch) | |
tree | 858b74456ac86e4863b51d6264c0c2d8c7a863c0 /tools | |
parent | 5c10f509f45820d1198bfb975840e93a782745ac (diff) | |
download | external_llvm-1246700d1b5eb5aea5826b6ceed01e3a67ca9a28.zip external_llvm-1246700d1b5eb5aea5826b6ceed01e3a67ca9a28.tar.gz external_llvm-1246700d1b5eb5aea5826b6ceed01e3a67ca9a28.tar.bz2 |
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
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llvm-objdump/COFFDump.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/llvm-objdump/COFFDump.cpp b/tools/llvm-objdump/COFFDump.cpp index ed4d1c3..30faecb 100644 --- a/tools/llvm-objdump/COFFDump.cpp +++ b/tools/llvm-objdump/COFFDump.cpp @@ -277,26 +277,26 @@ void llvm::printCOFFUnwindInfo(const COFFObjectFile *Obj) { outs() << " Start Address: "; printCOFFSymbolAddress(outs(), Rels, SectionOffset + - offsetof(RuntimeFunction, StartAddress), + /*offsetof(RuntimeFunction, StartAddress)*/ 0, I->StartAddress); outs() << "\n"; outs() << " End Address: "; printCOFFSymbolAddress(outs(), Rels, SectionOffset + - offsetof(RuntimeFunction, EndAddress), + /*offsetof(RuntimeFunction, EndAddress)*/ 4, I->EndAddress); outs() << "\n"; outs() << " Unwind Info Address: "; printCOFFSymbolAddress(outs(), Rels, SectionOffset + - offsetof(RuntimeFunction, UnwindInfoOffset), + /*offsetof(RuntimeFunction, UnwindInfoOffset)*/ 8, I->UnwindInfoOffset); outs() << "\n"; ArrayRef<uint8_t> XContents; uint64_t UnwindInfoOffset = 0; if (error(getSectionContents(Obj, Rels, SectionOffset + - offsetof(RuntimeFunction, UnwindInfoOffset), + /*offsetof(RuntimeFunction, UnwindInfoOffset)*/ 8, XContents, UnwindInfoOffset))) continue; if (XContents.empty()) continue; |