1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Add new -no-verify option

llvm-svn: 5542
This commit is contained in:
Chris Lattner 2003-02-12 18:45:08 +00:00
parent 0005ea2a7f
commit 8b72239415

View File

@ -50,6 +50,9 @@ 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>
NoVerify("no-verify", cl::desc("Do not verify result module"), 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) {
}
// Check that the module is well formed on completion of optimization
Passes.add(createVerifierPass());
if (!NoVerify)
Passes.add(createVerifierPass());
// Write bytecode out to disk or cout as the last step...
if (!NoOutput)