aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2011-10-25 22:45:47 +0000
committerStephen Hines <srhines@google.com>2011-11-14 09:11:14 -0800
commitf0a0d130c5dc905abf7c117ad7b21a9750eb170f (patch)
tree2908a7cf1154c6ea6a4147d28860d776f64607ad /tools
parent84372e09e6f49450fcdf921a8173b2fb04b9d684 (diff)
downloadexternal_llvm-f0a0d130c5dc905abf7c117ad7b21a9750eb170f.zip
external_llvm-f0a0d130c5dc905abf7c117ad7b21a9750eb170f.tar.gz
external_llvm-f0a0d130c5dc905abf7c117ad7b21a9750eb170f.tar.bz2
llvm-nm: Use correct format string. Patch by Stepan Dyatkovskiy!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142984 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/llvm-nm/llvm-nm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/llvm-nm/llvm-nm.cpp b/tools/llvm-nm/llvm-nm.cpp
index 550ca4f..6dfda9d 100644
--- a/tools/llvm-nm/llvm-nm.cpp
+++ b/tools/llvm-nm/llvm-nm.cpp
@@ -192,9 +192,9 @@ static void SortAndPrintSymbolList() {
strcpy(SymbolSizeStr, " ");
if (i->Address != object::UnknownAddressOrSize)
- format("%08x", i->Address).print(SymbolAddrStr, sizeof(SymbolAddrStr));
+ format("%08llx", i->Address).print(SymbolAddrStr, sizeof(SymbolAddrStr));
if (i->Size != object::UnknownAddressOrSize)
- format("%08x", i->Size).print(SymbolSizeStr, sizeof(SymbolSizeStr));
+ format("%08llx", i->Size).print(SymbolSizeStr, sizeof(SymbolSizeStr));
if (OutputFormat == posix) {
outs() << i->Name << " " << i->TypeChar << " "