diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-02-07 02:02:27 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-02-07 02:02:27 +0000 |
commit | 90e01ac0ea5bdc6dd6bccd9c59c3acb04e339666 (patch) | |
tree | c60fe9d6d50ea7f4a3a687ff9c4ea9f5927c8f1b /lib/DebugInfo | |
parent | 727de1e7565108158f5829d872dd2f6d7110532f (diff) |
DWARFDebugFrame.cpp: Fix formatting on i686 hosts.
FIXME: Are they really truncated to i32 from i64 unconditionally?
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174574 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo')
-rw-r--r-- | lib/DebugInfo/DWARFDebugFrame.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/DebugInfo/DWARFDebugFrame.cpp b/lib/DebugInfo/DWARFDebugFrame.cpp index 62e4856251..6781da6b1e 100644 --- a/lib/DebugInfo/DWARFDebugFrame.cpp +++ b/lib/DebugInfo/DWARFDebugFrame.cpp @@ -64,7 +64,9 @@ public: } void dumpHeader(raw_ostream &OS) const { - OS << format("%08x %08x %08x CIE", Offset, Length, DW_CIE_ID) << "\n"; + OS << format("%08x %08x %08x CIE", + (uint32_t)Offset, (uint32_t)Length, DW_CIE_ID) + << "\n"; OS << format(" Version: %d\n", Version); OS << " Augmentation: \"" << Augmentation << "\"\n"; OS << format(" Code alignment factor: %u\n", CodeAlignmentFactor); @@ -103,9 +105,10 @@ public: } void dumpHeader(raw_ostream &OS) const { - OS << format("%08x %08x %08x FDE ", Offset, Length, LinkedCIEOffset); + OS << format("%08x %08x %08x FDE ", + (uint32_t)Offset, (uint32_t)Length, LinkedCIEOffset); OS << format("cie=%08x pc=%08x...%08x\n", - LinkedCIEOffset, InitialLocation, + (uint32_t)LinkedCIEOffset, (uint32_t)InitialLocation, InitialLocation + AddressRange); OS << "\n"; if (LinkedCIE) { |