projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove the 'N' modifier from llvm-ar.
[oota-llvm.git]
/
tools
/
llvm-size
/
llvm-size.cpp
diff --git
a/tools/llvm-size/llvm-size.cpp
b/tools/llvm-size/llvm-size.cpp
index 70e5cb9439b3a3dce9948255510d678f146651fb..3de6605285bf2f22d8a2511ef49aab1c9b19e475 100644
(file)
--- a/
tools/llvm-size/llvm-size.cpp
+++ b/
tools/llvm-size/llvm-size.cpp
@@
-23,8
+23,8
@@
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/PrettyStackTrace.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/PrettyStackTrace.h"
-#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/Signals.h"
#include "llvm/Support/Signals.h"
+#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/system_error.h"
#include <algorithm>
#include <string>
#include "llvm/Support/system_error.h"
#include <algorithm>
#include <string>
@@
-96,13
+96,13
@@
static void PrintObjectSectionSizes(ObjectFile *o) {
const char *radix_fmt = 0;
switch (Radix) {
case octal:
const char *radix_fmt = 0;
switch (Radix) {
case octal:
- radix_fmt =
"llo"
;
+ radix_fmt =
PRIo64
;
break;
case decimal:
break;
case decimal:
- radix_fmt =
"llu"
;
+ radix_fmt =
PRIu64
;
break;
case hexadecimal:
break;
case hexadecimal:
- radix_fmt =
"llx"
;
+ radix_fmt =
PRIx64
;
break;
}
if (OutputFormat == sysv) {
break;
}
if (OutputFormat == sysv) {
@@
-223,8
+223,8
@@
static void PrintObjectSectionSizes(ObjectFile *o) {
total_data,
total_bss);
fmtbuf.clear();
total_data,
total_bss);
fmtbuf.clear();
- fmt << "%7" << (Radix == octal ?
"llo" : "llu"
) << " "
- << "%7
llx
";
+ fmt << "%7" << (Radix == octal ?
PRIo64 : PRIu64
) << " "
+ << "%7
" PRIx64 "
";
outs() << format(fmt.str().c_str(),
total,
total);
outs() << format(fmt.str().c_str(),
total,
total);