This catches mistakes in the passes rather than just verifying the bytecode
input to llc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22534
91177308-0d34-0410-b5e6-
96231b3b80d8
PassManager Passes;
Passes.add(new TargetData(TD));
-#ifndef NDEBUG
- if(!NoVerify)
- Passes.add(createVerifierPass());
-#endif
-
// Create a new pass for each one specified on the command line
for (unsigned i = 0; i < LLCPassList.size(); ++i) {
const PassInfo *aPass = LLCPassList[i];
}
}
+#ifndef NDEBUG
+ if(!NoVerify)
+ Passes.add(createVerifierPass());
+#endif
// Figure out where we are going to send the output...
std::ostream *Out = 0;