mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-29 14:40:25 +00:00
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:
parent
54bbdb4677
commit
e20a5dd343
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user