diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2015-01-05 00:08:53 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2015-01-05 00:08:53 +0000 |
commit | 9c31db4f94e78027bece17ee18a154a48436e574 (patch) | |
tree | c6763b1dbf8152a247cd35dc645a3ffbde864790 /llvm/tools/opt | |
parent | 75c11b88af8ca66274e2353246ace0d70ddc30fc (diff) | |
download | bcm5719-llvm-9c31db4f94e78027bece17ee18a154a48436e574.tar.gz bcm5719-llvm-9c31db4f94e78027bece17ee18a154a48436e574.zip |
[PM] Wire up support for explicitly running the verifier pass.
The required functionality has been there for some time, but I never
managed to actually wire it into the command line registry of passes.
Let's do that.
llvm-svn: 225144
Diffstat (limited to 'llvm/tools/opt')
-rw-r--r-- | llvm/tools/opt/PassRegistry.def | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/opt/PassRegistry.def b/llvm/tools/opt/PassRegistry.def index e1e49004c74..ed7fdf125d5 100644 --- a/llvm/tools/opt/PassRegistry.def +++ b/llvm/tools/opt/PassRegistry.def @@ -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 |