llvm.org GIT mirror llvm / a16ce91
[llvm-symbolizer] Add -exe, -e as aliases to -obj Summary: Provides -exe, -e as aliases to -obj. Motivation: https://bugs.llvm.org/show_bug.cgi?id=40071 Reviewers: ruiu, rnk, fjricci, jhenderson Reviewed By: jhenderson Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D56580 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350925 91177308-0d34-0410-b5e6-96231b3b80d8 Dmitry Venikov 7 months ago
3 changed file(s) with 13 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
6767 OPTIONS
6868 -------
6969
70 .. option:: -obj
70 .. option:: -obj, -exe, -e
7171
7272 Path to object file to be symbolized.
7373
1414 # RUN: llvm-symbolizer 0xa 0xb --obj=%t.o | FileCheck %s
1515 # RUN: llvm-symbolizer 10 11 --obj=%t.o | FileCheck %s
1616
17 # Check --obj aliases --exe, -e
18 # RUN: llvm-symbolizer 0xa 0xb --exe=%t.o | FileCheck %s
19 # RUN: llvm-symbolizer 0xa 0xb -e=%t.o | FileCheck %s
20
1721 # CHECK: basic.s:5:0
1822 # CHECK: basic.s:6:0
6161 cl::desc("Default architecture "
6262 "(for multi-arch objects)"));
6363
64 // -obj, -exe, -e
6465 static cl::opt
6566 ClBinaryName("obj", cl::init(""),
6667 cl::desc("Path to object file to be symbolized (if not provided, "
6768 "object file should be specified for each input line)"));
69 static cl::alias
70 ClBinaryNameAliasExe("exe", cl::desc("Alias for -obj"),
71 cl::NotHidden, cl::aliasopt(ClBinaryName));
72 static cl::alias
73 ClBinaryNameAliasE("e", cl::desc("Alias for -obj"),
74 cl::NotHidden, cl::aliasopt(ClBinaryName));
75
6876
6977 static cl::opt
7078 ClDwpName("dwp", cl::init(""),