[llvm] r174574 - DWARFDebugFrame.cpp: Fix formatting on i686 hosts.
NAKAMURA Takumi
geek4civic at gmail.com
Wed Feb 6 18:02:27 PST 2013
Author: chapuni
Date: Wed Feb 6 20:02:27 2013
New Revision: 174574
URL: http://llvm.org/viewvc/llvm-project?rev=174574&view=rev
Log:
DWARFDebugFrame.cpp: Fix formatting on i686 hosts.
FIXME: Are they really truncated to i32 from i64 unconditionally?
Modified:
llvm/trunk/lib/DebugInfo/DWARFDebugFrame.cpp
Modified: llvm/trunk/lib/DebugInfo/DWARFDebugFrame.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARFDebugFrame.cpp?rev=174574&r1=174573&r2=174574&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/DWARFDebugFrame.cpp (original)
+++ llvm/trunk/lib/DebugInfo/DWARFDebugFrame.cpp Wed Feb 6 20:02:27 2013
@@ -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) {
More information about the llvm-commits
mailing list