[llvm] r308227 - 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 15:46:11 PDT 2017
Author: ecbeckmann
Date: Mon Jul 17 15:46:10 2017
New Revision: 308227
URL: http://llvm.org/viewvc/llvm-project?rev=308227&view=rev
Log:
Adding temporary debugging info to llvm-mt to solve fedora failure.
Modified:
llvm/trunk/tools/llvm-mt/llvm-mt.cpp
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=308227&r1=308226&r2=308227&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mt/llvm-mt.cpp (original)
+++ llvm/trunk/tools/llvm-mt/llvm-mt.cpp Mon Jul 17 15:46:10 2017
@@ -82,13 +82,20 @@ int main(int argc, const char **argv) {
CvtResOptTable T;
unsigned MAI, MAC;
- ArrayRef<const char *> ArgsArr = makeArrayRef(argv + 1, argc);
+ ArrayRef<const char *> ArgsArr = makeArrayRef(argv, 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