mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
Add the -U flag to llvm-nm as an alias to -defined-only
as darwin’s nm(1) uses -U for this functionality. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212280 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0e1e88e7e1
commit
c150516f36
@ -12,6 +12,8 @@ RUN: llvm-nm %p/Inputs/absolute.elf-x86-64 \
|
||||
RUN: | FileCheck %s -check-prefix ABSOLUTE-ELF64
|
||||
RUN: llvm-nm %p/Inputs/trivial-object-test.macho-i386 \
|
||||
RUN: | FileCheck %s -check-prefix macho
|
||||
RUN: llvm-nm -U %p/Inputs/trivial-object-test.macho-i386 \
|
||||
RUN: | FileCheck %s -check-prefix macho-U
|
||||
RUN: llvm-nm %p/Inputs/trivial-object-test.macho-x86-64 \
|
||||
RUN: | FileCheck %s -check-prefix macho64
|
||||
RUN: llvm-nm %p/Inputs/macho-text-data-bss.macho-x86_64 \
|
||||
@ -68,6 +70,10 @@ macho: U _SomeOtherFunction
|
||||
macho: 00000000 T _main
|
||||
macho: U _puts
|
||||
|
||||
macho-U-NOT: U _SomeOtherFunction
|
||||
macho-U: 00000000 T _main
|
||||
macho-U-NOT: U _puts
|
||||
|
||||
macho64: 0000000000000028 s L_.str
|
||||
macho64: U _SomeOtherFunction
|
||||
macho64: 0000000000000000 T _main
|
||||
|
@ -73,6 +73,8 @@ cl::alias DynamicSyms2("D", cl::desc("Alias for --dynamic"),
|
||||
|
||||
cl::opt<bool> DefinedOnly("defined-only",
|
||||
cl::desc("Show only defined symbols"));
|
||||
cl::alias DefinedOnly2("U", cl::desc("Alias for --defined-only"),
|
||||
cl::aliasopt(DefinedOnly));
|
||||
|
||||
cl::opt<bool> ExternalOnly("extern-only",
|
||||
cl::desc("Show only external symbols"));
|
||||
|
Loading…
Reference in New Issue
Block a user