diff options
author | Sam Clegg <sbc@chromium.org> | 2017-08-31 21:23:44 +0000 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2017-08-31 21:23:44 +0000 |
commit | 32cfbeb4bd7bbc7c830c99a5eed1cd7c43ab547d (patch) | |
tree | 5237b9066dfdfaaba06a770d4cc21510ee2c7206 /llvm/tools/llvm-nm/llvm-nm.cpp | |
parent | cde4528a8e2940138b9ea9b6c1cf5abceba955ed (diff) | |
download | bcm5719-llvm-32cfbeb4bd7bbc7c830c99a5eed1cd7c43ab547d.tar.gz bcm5719-llvm-32cfbeb4bd7bbc7c830c99a5eed1cd7c43ab547d.zip |
[llvm-nm] Fix output formatting of -f sysv for 64bit targets
Differential Revision: https://reviews.llvm.org/D37347
llvm-svn: 312284
Diffstat (limited to 'llvm/tools/llvm-nm/llvm-nm.cpp')
-rw-r--r-- | llvm/tools/llvm-nm/llvm-nm.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/llvm/tools/llvm-nm/llvm-nm.cpp b/llvm/tools/llvm-nm/llvm-nm.cpp index 126a9ae925e..1934051c65d 100644 --- a/llvm/tools/llvm-nm/llvm-nm.cpp +++ b/llvm/tools/llvm-nm/llvm-nm.cpp @@ -709,9 +709,13 @@ static void sortAndPrintSymbolList(SymbolicFile &Obj, bool printName, } else if (OutputFormat == bsd && MultipleFiles && printName) { outs() << "\n" << CurrentFilename << ":\n"; } else if (OutputFormat == sysv) { - outs() << "\n\nSymbols from " << CurrentFilename << ":\n\n" - << "Name Value Class Type" - << " Size Line Section\n"; + outs() << "\n\nSymbols from " << CurrentFilename << ":\n\n"; + if (isSymbolList64Bit(Obj)) + outs() << "Name Value Class Type" + << " Size Line Section\n"; + else + outs() << "Name Value Class Type" + << " Size Line Section\n"; } } |