[PATCH] D81855: [llvm-readobj] set --elf-cg-profile as alias of --cg-profile
Zequan Wu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 15 10:55:59 PDT 2020
zequanwu created this revision.
zequanwu added a reviewer: jhenderson.
Herald added subscribers: llvm-commits, rupprecht, MaskRay.
Herald added a project: LLVM.
Rename --elf-cg-profile to --cg-profile and keep --elf-cg-profile as an alias of --cg-profile.
Relate patch: D81775 <https://reviews.llvm.org/D81775>.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D81855
Files:
llvm/tools/llvm-readobj/llvm-readobj.cpp
Index: llvm/tools/llvm-readobj/llvm-readobj.cpp
===================================================================
--- llvm/tools/llvm-readobj/llvm-readobj.cpp
+++ llvm/tools/llvm-readobj/llvm-readobj.cpp
@@ -345,8 +345,11 @@
cl::desc("Alias for --elf-hash-histogram"),
cl::aliasopt(HashHistogram));
- // --elf-cg-profile
- cl::opt<bool> CGProfile("elf-cg-profile", cl::desc("Display callgraph profile section"));
+ // --cg-profile
+ cl::opt<bool> CGProfile("cg-profile",
+ cl::desc("Display callgraph profile section"));
+ cl::alias ELFCGProfile("elf-cg-profile", cl::desc("Alias for --cg-profile"),
+ cl::aliasopt(CGProfile));
// -addrsig
cl::opt<bool> Addrsig("addrsig",
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81855.270796.patch
Type: text/x-patch
Size: 795 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200615/9ca2ddca/attachment.bin>
More information about the llvm-commits
mailing list