[llvm-commits] [llvm] r127858 - /llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
NAKAMURA Takumi
geek4civic at gmail.com
Thu Mar 17 20:21:04 PDT 2011
Author: chapuni
Date: Thu Mar 17 22:21:04 2011
New Revision: 127858
URL: http://llvm.org/viewvc/llvm-project?rev=127858&view=rev
Log:
llvm-bcanalyzer.cpp: Tweak format string to suppress warnings on mingw32-g++.
Modified:
llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
Modified: llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp?rev=127858&r1=127857&r2=127858&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp (original)
+++ llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp Thu Mar 17 22:21:04 2011
@@ -471,11 +471,11 @@
}
static void PrintSize(double Bits) {
- fprintf(stderr, "%.2f/%.2fB/%lluW", Bits, Bits/8,(unsigned long long)Bits/32);
+ fprintf(stderr, "%.2f/%.2fB/%luW", Bits, Bits/8,(unsigned long)(Bits/32));
}
static void PrintSize(uint64_t Bits) {
- fprintf(stderr, "%llub/%.2fB/%lluW", (unsigned long long)Bits,
- (double)Bits/8, (unsigned long long)Bits/32);
+ fprintf(stderr, "%lub/%.2fB/%luW", (unsigned long)Bits,
+ (double)Bits/8, (unsigned long)(Bits/32));
}
@@ -601,8 +601,8 @@
for (unsigned i = 0, e = FreqPairs.size(); i != e; ++i) {
const PerRecordStats &RecStats = Stats.CodeFreq[FreqPairs[i].second];
- fprintf(stderr, "\t\t%7d %9llu ", RecStats.NumInstances,
- (unsigned long long)RecStats.TotalBits);
+ fprintf(stderr, "\t\t%7d %9lu ", RecStats.NumInstances,
+ (unsigned long)RecStats.TotalBits);
if (RecStats.NumAbbrev)
fprintf(stderr, "%7.2f ",
More information about the llvm-commits
mailing list