1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

llvm-bcanalyzer.cpp: Tweak format string to suppress warnings on mingw32-g++.

llvm-svn: 127858
This commit is contained in:
NAKAMURA Takumi 2011-03-18 03:21:04 +00:00
parent 2956265983
commit a4eec0fe83

View File

@ -471,11 +471,11 @@ static bool ParseBlock(BitstreamCursor &Stream, unsigned IndentLevel) {
}
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 @@ static int AnalyzeBitcode() {
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 ",