[llvm] r308263 - Revert "Adding temporary debugging info to llvm-mt to solve fedora failure."

Eric Beckmann via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 17 20:38:04 PDT 2017


Author: ecbeckmann
Date: Mon Jul 17 20:38:04 2017
New Revision: 308263

URL: http://llvm.org/viewvc/llvm-project?rev=308263&view=rev
Log:
Revert "Adding temporary debugging info to llvm-mt to solve fedora failure."

This reverts commit 223ef99f839f6b056272bcf4390841fcb26dda3c.

Modified:
    llvm/trunk/test/tools/llvm-mt/help.test
    llvm/trunk/tools/llvm-mt/llvm-mt.cpp

Modified: llvm/trunk/test/tools/llvm-mt/help.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mt/help.test?rev=308263&r1=308262&r2=308263&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-mt/help.test (original)
+++ llvm/trunk/test/tools/llvm-mt/help.test Mon Jul 17 20:38:04 2017
@@ -1,5 +1,3 @@
-RUN: not llvm-mt /hello /nonsense
-
 RUN: llvm-mt /h | FileCheck %s -check-prefix=HELP
 
 RUN: llvm-mt /inputresource:foo.res /manifest foo.manifest | FileCheck %s -check-prefix=NOT_SUPPORTED

Modified: llvm/trunk/tools/llvm-mt/llvm-mt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mt/llvm-mt.cpp?rev=308263&r1=308262&r2=308263&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mt/llvm-mt.cpp (original)
+++ llvm/trunk/tools/llvm-mt/llvm-mt.cpp Mon Jul 17 20:38:04 2017
@@ -82,20 +82,13 @@ int main(int argc, const char **argv) {
 
   CvtResOptTable T;
   unsigned MAI, MAC;
-  ArrayRef<const char *> ArgsArr = makeArrayRef(argv, argc);
+  ArrayRef<const char *> ArgsArr = makeArrayRef(argv + 1, argc);
   opt::InputArgList InputArgs = T.ParseArgs(ArgsArr, MAI, MAC);
 
-  for (int i = 0; i < argc; i++ ) {
-    errs() << argv[i] << "\n";
-  }
-
   for (auto &Arg : InputArgs) {
-    errs() << "found option: " << Arg->getOption().getName() << "\n";
     if (Arg->getOption().matches(OPT_unsupported)) {
       outs() << "llvm-mt: ignoring unsupported '" << Arg->getOption().getName()
              << "' option\n";
-      errs() << "llvm-mt: ignoring unsupported '" << Arg->getOption().getName()
-             << "' option\n";
     }
   }
 




More information about the llvm-commits mailing list