Register Verifier pass

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3019 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-07-23 18:08:17 +00:00
parent 54bbdb4677
commit e20a5dd343

View File

@ -55,8 +55,6 @@ namespace { // Anonymous namespace for class
Verifier() : Broken(false) {}
virtual const char *getPassName() const { return "Module Verifier"; }
bool doInitialization(Module &M) {
verifySymbolTable(M.getSymbolTable());
return false;
@ -113,6 +111,8 @@ namespace { // Anonymous namespace for class
Broken = true;
}
};
RegisterPass<Verifier> X("verify", "Module Verifier");
}
// Assert - We know that cond should be true, if not print an error message.