mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-26 14:16:12 +00:00
Implemented the code to make llvm-nm’s -g option work.
While llvm-nm parses the -g option and has help that describes it as: -extern-only - Show only external symbols There is no code in the program to use the boolean valve it sets from the command line. rdar://23261095 llvm-svn: 251718
This commit is contained in:
parent
5b1a50aeaa
commit
25abebf82b
BIN
test/tools/llvm-nm/X86/Inputs/hello.obj.macho-x86_64
Normal file
BIN
test/tools/llvm-nm/X86/Inputs/hello.obj.macho-x86_64
Normal file
Binary file not shown.
4
test/tools/llvm-nm/X86/externalonly.test
Normal file
4
test/tools/llvm-nm/X86/externalonly.test
Normal file
@ -0,0 +1,4 @@
|
||||
# RUN: llvm-nm -g %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s
|
||||
|
||||
# CHECK-NOT: EH_frame0
|
||||
# CHECK: _main
|
2
test/tools/llvm-nm/lit.local.cfg
Normal file
2
test/tools/llvm-nm/lit.local.cfg
Normal file
@ -0,0 +1,2 @@
|
||||
if not 'X86' in config.root.targets:
|
||||
config.unsupported = True
|
@ -529,6 +529,9 @@ static void sortAndPrintSymbolList(SymbolicFile &Obj, bool printName,
|
||||
continue;
|
||||
if (Undefined && DefinedOnly)
|
||||
continue;
|
||||
bool Global = SymFlags & SymbolRef::SF_Global;
|
||||
if (!Global && ExternalOnly)
|
||||
continue;
|
||||
if (SizeSort && !PrintAddress)
|
||||
continue;
|
||||
if (PrintFileName) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user