[PATCH] D46547: [llvm-objcopy] Fix the exit code

Alexander Shaposhnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 7 19:27:06 PDT 2018


alexshap added inline comments.


================
Comment at: tools/llvm-objcopy/llvm-objcopy.cpp:492
 
-  if (InputArgs.size() == 0 || InputArgs.hasArg(STRIP_help)) {
+  if (InputArgs.size() == 0) {
+    T.PrintHelp(errs(), "llvm-strip <input> [ <output> ]", "strip tool");
----------------
(just in case - this class doesn't have empty() (yet) - that's why it's a little bit more verbose than probably it could be)


Repository:
  rL LLVM

https://reviews.llvm.org/D46547





More information about the llvm-commits mailing list