mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-20 03:18:09 +00:00
Add a new -no-output option, useful for -aa-eval tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5541 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3c0ced5e70
commit
d70b68ebd0
@ -47,6 +47,9 @@ Force("f", cl::desc("Overwrite output files"));
|
||||
static cl::opt<bool>
|
||||
PrintEachXForm("p", cl::desc("Print module after each transformation"));
|
||||
|
||||
static cl::opt<bool>
|
||||
NoOutput("no-output", cl::desc("Do not write result bytecode file"), cl::Hidden);
|
||||
|
||||
static cl::opt<bool>
|
||||
Quiet("q", cl::desc("Don't print 'program modified' message"));
|
||||
|
||||
@ -128,7 +131,8 @@ int main(int argc, char **argv) {
|
||||
Passes.add(createVerifierPass());
|
||||
|
||||
// Write bytecode out to disk or cout as the last step...
|
||||
Passes.add(new WriteBytecodePass(Out, Out != &std::cout));
|
||||
if (!NoOutput)
|
||||
Passes.add(new WriteBytecodePass(Out, Out != &std::cout));
|
||||
|
||||
// Now that we have all of the passes ready, run them.
|
||||
if (Passes.run(*M.get()) && !Quiet)
|
||||
|
Loading…
x
Reference in New Issue
Block a user