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:
Kevin Enderby
2014-07-03 18:18:50 +00:00
parent 0e1e88e7e1
commit c150516f36
2 changed files with 8 additions and 0 deletions

View File

@@ -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"));