summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorDouglas Yung <douglas.yung@sony.com>2019-01-25 09:57:20 +0000
committerDouglas Yung <douglas.yung@sony.com>2019-01-25 09:57:20 +0000
commit914e838e636d44c9798e790535bacec04a16b0d5 (patch)
treefd5b2eaa9688a815ad086adff57a856f57412355 /llvm/tools
parent56bf7b56dcb2796525e9d1aa5e735de8495f44cd (diff)
downloadbcm5719-llvm-914e838e636d44c9798e790535bacec04a16b0d5.tar.gz
bcm5719-llvm-914e838e636d44c9798e790535bacec04a16b0d5.zip
[llvm-objcopy] Add support for -g as an alias for --strip-debug
This change adds an option -g to llvm-objcopy which is an alias for the existing option --strip-debug. This fixes PR40003. Reviewed by: alexshap Differential Revision: https://reviews.llvm.org/D57217 llvm-svn: 352182
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/llvm-objcopy/ObjcopyOpts.td2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/llvm-objcopy/ObjcopyOpts.td b/llvm/tools/llvm-objcopy/ObjcopyOpts.td
index 1f7e64e4091..57d8bf177b8 100644
--- a/llvm/tools/llvm-objcopy/ObjcopyOpts.td
+++ b/llvm/tools/llvm-objcopy/ObjcopyOpts.td
@@ -95,6 +95,8 @@ def strip_all_gnu : Flag<["-", "--"], "strip-all-gnu">,
HelpText<"Compatible with GNU objcopy's --strip-all">;
def strip_debug : Flag<["-", "--"], "strip-debug">,
HelpText<"Remove all debug information">;
+def g : Flag<["-"], "g">, Alias<strip_debug>,
+ HelpText<"Alias for --strip-debug">;
def strip_dwo : Flag<["-", "--"], "strip-dwo">,
HelpText<"Remove all DWARF .dwo sections from file">;
def strip_sections : Flag<["-", "--"], "strip-sections">,
OpenPOWER on IntegriCloud