summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2012-12-05 22:38:01 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2012-12-05 22:38:01 +0000
commit6fa518c51ef5a3d982abda86286eaf00c74a549a (patch)
tree85f3a4fb289afeb8afd3efa4519cfe0b5780bc18 /llvm/tools
parent48f244ac2c4a9dc367a205048f9c6d1fc64fb864 (diff)
downloadbcm5719-llvm-6fa518c51ef5a3d982abda86286eaf00c74a549a.tar.gz
bcm5719-llvm-6fa518c51ef5a3d982abda86286eaf00c74a549a.zip
Quick build fix for c++03 clang. This needs a proper solution. Note that these offsets are guaranteed to be correct by Endian.h.
llvm-svn: 169438
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/llvm-objdump/COFFDump.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/tools/llvm-objdump/COFFDump.cpp b/llvm/tools/llvm-objdump/COFFDump.cpp
index ed4d1c3344f..30faecbb19d 100644
--- a/llvm/tools/llvm-objdump/COFFDump.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud