mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +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) {}
|
Verifier() : Broken(false) {}
|
||||||
|
|
||||||
virtual const char *getPassName() const { return "Module Verifier"; }
|
|
||||||
|
|
||||||
bool doInitialization(Module &M) {
|
bool doInitialization(Module &M) {
|
||||||
verifySymbolTable(M.getSymbolTable());
|
verifySymbolTable(M.getSymbolTable());
|
||||||
return false;
|
return false;
|
||||||
@ -113,6 +111,8 @@ namespace { // Anonymous namespace for class
|
|||||||
Broken = true;
|
Broken = true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
RegisterPass<Verifier> X("verify", "Module Verifier");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Assert - We know that cond should be true, if not print an error message.
|
// Assert - We know that cond should be true, if not print an error message.
|
||||||
|
Loading…
Reference in New Issue
Block a user