[PM] Wire up support for explicitly running the verifier pass.
[oota-llvm.git] / tools / opt / PassRegistry.def
index e1e49004c7414d8c3888a5c49a9b8074a3da97e1..ed7fdf125d596ebb1023534a187335ac3bd71342 100644 (file)
@@ -27,6 +27,7 @@ MODULE_ANALYSIS("lcg", LazyCallGraphAnalysis())
 #endif
 MODULE_PASS("print", PrintModulePass(dbgs()))
 MODULE_PASS("print-cg", LazyCallGraphPrinterPass(dbgs()))
+MODULE_PASS("verify", VerifierPass())
 #undef MODULE_PASS
 
 #ifndef CGSCC_ANALYSIS
@@ -48,4 +49,5 @@ MODULE_PASS("print-cg", LazyCallGraphPrinterPass(dbgs()))
 #define FUNCTION_PASS(NAME, CREATE_PASS)
 #endif
 FUNCTION_PASS("print", PrintFunctionPass(dbgs()))
+FUNCTION_PASS("verify", VerifierPass())
 #undef FUNCTION_PASS