mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-21 03:32:29 +00:00
Expose more entry points to the verifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1815 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9039ba9939
commit
3b2541424f
@ -138,7 +138,7 @@ static bool verifyBasicBlock(const BasicBlock *BB) {
|
||||
|
||||
// verifyMethod - Verify that a method is ok.
|
||||
//
|
||||
static bool verifyMethod(const Method *M) {
|
||||
bool verifyMethod(const Method *M) {
|
||||
if (M->isExternal()) return false; // Can happen if called by verifyModule
|
||||
|
||||
bool Broken = false;
|
||||
@ -164,6 +164,6 @@ Pass *createVerifierPass() {
|
||||
// verifyModule - Check a module for errors, printing messages on stderr.
|
||||
// Return true if the module is corrupt.
|
||||
//
|
||||
bool verifyModule(Module *M) {
|
||||
bool verifyModule(const Module *M) {
|
||||
return reduce_apply_bool(M->begin(), M->end(), verifyMethod);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user