llvm.org GIT mirror llvm / 3213608
Revert "Adding extra test info for llvm-mt." This reverts commit 66093fd60b848572f676023b8387bff69b151511. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308261 91177308-0d34-0410-b5e6-96231b3b80d8 Eric Beckmann 2 years ago
1 changed file(s) with 14 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
6666 exit(1);
6767 }
6868
69 int main(int argc, const char *argv[]) {
69 int main(int argc, const char **argv) {
7070 errs() << "very start\n";
7171 for (int i = 0; i < argc; i++ ) {
7272 errs() << argv[i] << "\n";
7373 }
7474
75 sys::PrintStackTraceOnErrorSignal(argv[0]);
76 PrettyStackTraceProgram X(argc, argv);
77
78 ExitOnErr.setBanner("llvm-mt: ");
79
80 SmallVector argv_buf;
81 SpecificBumpPtrAllocator ArgAllocator;
82 ExitOnErr(errorCodeToError(sys::Process::GetArgumentVector(
83 argv_buf, makeArrayRef(argv, argc), ArgAllocator)));
84
85 llvm_shutdown_obj Y; // Call llvm_shutdown() on exit.
86
7587 CvtResOptTable T;
7688 unsigned MAI, MAC;
77 ArrayRef ArgsArr = makeArrayRef(argv + 1, argc);
89 ArrayRef ArgsArr = makeArrayRef(argv, argc);
7890 opt::InputArgList InputArgs = T.ParseArgs(ArgsArr, MAI, MAC);
7991
8092 errs() << "after\n";