aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/DWARFDebugFrame.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-02-07 02:02:27 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-02-07 02:02:27 +0000
commit56ac51a92ef7102352e7ad81d518c3565af74d7d (patch)
tree256019c21ee860f9fd97c8bb1ca53a1490388db6 /llvm/lib/DebugInfo/DWARFDebugFrame.cpp
parent57dd66baa4ca084e99d9438d09c96c46716c7ebe (diff)
downloadllvm-56ac51a92ef7102352e7ad81d518c3565af74d7d.zip
llvm-56ac51a92ef7102352e7ad81d518c3565af74d7d.tar.gz
llvm-56ac51a92ef7102352e7ad81d518c3565af74d7d.tar.bz2
DWARFDebugFrame.cpp: Fix formatting on i686 hosts.
FIXME: Are they really truncated to i32 from i64 unconditionally? llvm-svn: 174574
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFDebugFrame.cpp')
-rw-r--r--llvm/lib/DebugInfo/DWARFDebugFrame.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/lib/DebugInfo/DWARFDebugFrame.cpp b/llvm/lib/DebugInfo/DWARFDebugFrame.cpp
index 62e4856..6781da6 100644
--- a/llvm/lib/DebugInfo/DWARFDebugFrame.cpp
+++ b/llvm/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) {