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:
Chris Lattner 2002-02-26 21:45:33 +00:00
parent 9039ba9939
commit 3b2541424f

View File

@ -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);
}