summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-objcopy/llvm-objcopy.cpp
diff options
context:
space:
mode:
authorAlexander Shaposhnikov <shal1t712@gmail.com>2018-05-31 20:42:13 +0000
committerAlexander Shaposhnikov <shal1t712@gmail.com>2018-05-31 20:42:13 +0000
commitecc84834b723eef4c32b8cf7fc91e3867924e0bf (patch)
treeb74e29e075912a32f1d56baf3b74793e1973ae19 /llvm/tools/llvm-objcopy/llvm-objcopy.cpp
parent403701140476981529a0ef0670910922804acb20 (diff)
downloadbcm5719-llvm-ecc84834b723eef4c32b8cf7fc91e3867924e0bf.tar.gz
bcm5719-llvm-ecc84834b723eef4c32b8cf7fc91e3867924e0bf.zip
[llvm-strip] Add -o option to llvm-strip
This diff implements the option -o for specifying a file to write the output to. Test plan: make check-all Differential revision: https://reviews.llvm.org/D47505 llvm-svn: 333693
Diffstat (limited to 'llvm/tools/llvm-objcopy/llvm-objcopy.cpp')
-rw-r--r--llvm/tools/llvm-objcopy/llvm-objcopy.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-objcopy/llvm-objcopy.cpp b/llvm/tools/llvm-objcopy/llvm-objcopy.cpp
index da8c6ee776a..bbd21d58823 100644
--- a/llvm/tools/llvm-objcopy/llvm-objcopy.cpp
+++ b/llvm/tools/llvm-objcopy/llvm-objcopy.cpp
@@ -582,7 +582,8 @@ CopyConfig ParseStripOptions(ArrayRef<const char *> ArgsArr) {
CopyConfig Config;
Config.InputFilename = Positional[0];
- Config.OutputFilename = Positional[0];
+ Config.OutputFilename =
+ InputArgs.getLastArgValue(STRIP_output, Positional[0]);
// Strip debug info only.
Config.StripDebug = InputArgs.hasArg(STRIP_strip_debug);
OpenPOWER on IntegriCloud