aboutsummaryrefslogtreecommitdiffstats
path: root/lib/DebugInfo/DWARFDebugInfoEntry.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-11-05 15:35:00 +0000
committerStephen Hines <srhines@google.com>2011-11-14 09:11:51 -0800
commitd10c7a883a19cfbeca7f8b5240638d8db05b4e56 (patch)
tree264a9e6387ae3cf179a4ab3080045aa57e7c1e99 /lib/DebugInfo/DWARFDebugInfoEntry.cpp
parent5da24b26bedf0fffc016ebb6494f5cc506dc404c (diff)
downloadexternal_llvm-d10c7a883a19cfbeca7f8b5240638d8db05b4e56.tar.gz
external_llvm-d10c7a883a19cfbeca7f8b5240638d8db05b4e56.tar.bz2
external_llvm-d10c7a883a19cfbeca7f8b5240638d8db05b4e56.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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143812 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo/DWARFDebugInfoEntry.cpp')
-rw-r--r--lib/DebugInfo/DWARFDebugInfoEntry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/DebugInfo/DWARFDebugInfoEntry.cpp b/lib/DebugInfo/DWARFDebugInfoEntry.cpp
index 1b089adbe1..67ab111745 100644
--- a/lib/DebugInfo/DWARFDebugInfoEntry.cpp
+++ b/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) {