llvm.org GIT mirror llvm / e652b52
allow opt to take a -mtriple option git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154959 91177308-0d34-0410-b5e6-96231b3b80d8 Joe Groff 8 years ago
1 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
113113 OptLevelO3("O3",
114114 cl::desc("Optimization level 3. Similar to llvm-gcc -O3"));
115115
116 static cl::opt
117 TargetTriple("mtriple", cl::desc("Override target triple for module"));
118
116119 static cl::opt
117120 UnitAtATime("funit-at-a-time",
118121 cl::desc("Enable IPO. This is same as llvm-gcc's -funit-at-a-time"),
510513 Err.print(argv[0], errs());
511514 return 1;
512515 }
516
517 // If we are supposed to override the target triple, do so now.
518 if (!TargetTriple.empty())
519 M->setTargetTriple(Triple::normalize(TargetTriple));
513520
514521 // Figure out what stream we are supposed to write to...
515522 OwningPtr Out;