[llvm] r308261 - Revert "Adding extra test info for llvm-mt."
Eric Beckmann via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 17 20:37:34 PDT 2017
Author: ecbeckmann
Date: Mon Jul 17 20:37:34 2017
New Revision: 308261
URL: http://llvm.org/viewvc/llvm-project?rev=308261&view=rev
Log:
Revert "Adding extra test info for llvm-mt."
This reverts commit 66093fd60b848572f676023b8387bff69b151511.
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=308261&r1=308260&r2=308261&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mt/llvm-mt.cpp (original)
+++ llvm/trunk/tools/llvm-mt/llvm-mt.cpp Mon Jul 17 20:37:34 2017
@@ -67,15 +67,27 @@ LLVM_ATTRIBUTE_NORETURN void reportError
exit(1);
}
-int main(int argc, const char *argv[]) {
+int main(int argc, const char **argv) {
errs() << "very start\n";
for (int i = 0; i < argc; i++ ) {
errs() << argv[i] << "\n";
}
+ sys::PrintStackTraceOnErrorSignal(argv[0]);
+ PrettyStackTraceProgram X(argc, argv);
+
+ ExitOnErr.setBanner("llvm-mt: ");
+
+ SmallVector<const char *, 256> argv_buf;
+ SpecificBumpPtrAllocator<char> ArgAllocator;
+ ExitOnErr(errorCodeToError(sys::Process::GetArgumentVector(
+ argv_buf, makeArrayRef(argv, argc), ArgAllocator)));
+
+ llvm_shutdown_obj Y; // Call llvm_shutdown() on exit.
+
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);
errs() << "after\n";
More information about the llvm-commits
mailing list