summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-11-05 15:35:00 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-11-05 15:35:00 +0000
commitf7e0a31f8ae4e159921917cd5203d2595d17d33d (patch)
tree15b4d5846d5ce1a113b7113713e838aa15b73851 /llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp
parentadc5b46782f9ee52fd1a0d00ac5f2715efc09088 (diff)
downloadbcm5719-llvm-f7e0a31f8ae4e159921917cd5203d2595d17d33d.tar.gz
bcm5719-llvm-f7e0a31f8ae4e159921917cd5203d2595d17d33d.zip
Reduce the offsets in DwarfDebugInfoEntry to 32 bit, they're printed with %x and
that breaks on big-endian machines. I have to clean up the 32/64 bit confusion in libDebugInfo some day. llvm-svn: 143812
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp')
-rw-r--r--llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp b/llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp
index 1b089adbe13..67ab111745e 100644
--- a/llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp
+++ b/llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp
@@ -26,7 +26,7 @@ void DWARFDebugInfoEntryMinimal::dump(raw_ostream &OS,
uint32_t offset = Offset;
if (debug_info_data.isValidOffset(offset)) {
- uint64_t abbrCode = debug_info_data.getULEB128(&offset);
+ uint32_t abbrCode = debug_info_data.getULEB128(&offset);
OS << format("\n0x%8.8x: ", Offset);
if (abbrCode) {
OpenPOWER on IntegriCloud