[llvm] r234251 - Fix failure on builder clang-cmake-mips where it was printing a 32-bit address
Kevin Enderby
enderby at apple.com
Mon Apr 6 15:33:44 PDT 2015
Author: enderby
Date: Mon Apr 6 17:33:43 2015
New Revision: 234251
URL: http://llvm.org/viewvc/llvm-project?rev=234251&view=rev
Log:
Fix failure on builder clang-cmake-mips where it was printing a 32-bit address
incorrectly because it came from an expression using S.getAddress() which always
returns a 64-bit value.
Modified:
llvm/trunk/tools/llvm-objdump/MachODump.cpp
Modified: llvm/trunk/tools/llvm-objdump/MachODump.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-objdump/MachODump.cpp?rev=234251&r1=234250&r2=234251&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-objdump/MachODump.cpp (original)
+++ llvm/trunk/tools/llvm-objdump/MachODump.cpp Mon Apr 6 17:33:43 2015
@@ -3102,7 +3102,8 @@ walk_pointer_list_32(const char *listnam
if (i + sizeof(uint32_t) > S.getSize())
outs() << listname << " list pointer extends past end of (" << SegName
<< "," << SectName << ") section\n";
- outs() << format("%08" PRIx32, S.getAddress() + i) << " ";
+ uint32_t Address = S.getAddress() + i;
+ outs() << format("%08" PRIx32, Address) << " ";
if (O->isLittleEndian() != sys::IsLittleEndianHost)
sys::swapByteOrder(p);
More information about the llvm-commits
mailing list