mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-18 13:34:04 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234251 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2b8aee8cfa
commit
310c640b64
@ -3102,7 +3102,8 @@ walk_pointer_list_32(const char *listname, const SectionRef S,
|
|||||||
if (i + sizeof(uint32_t) > S.getSize())
|
if (i + sizeof(uint32_t) > S.getSize())
|
||||||
outs() << listname << " list pointer extends past end of (" << SegName
|
outs() << listname << " list pointer extends past end of (" << SegName
|
||||||
<< "," << SectName << ") section\n";
|
<< "," << 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)
|
if (O->isLittleEndian() != sys::IsLittleEndianHost)
|
||||||
sys::swapByteOrder(p);
|
sys::swapByteOrder(p);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user