diff options
author | Chris Lattner <sabre@nondot.org> | 2002-02-26 21:45:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-02-26 21:45:33 +0000 |
commit | 3b2541424f771ae11c30675ce06da7b380780028 (patch) | |
tree | 257c65f4e4d1a670232540e4cb7283a6dffa1029 | |
parent | 9039ba9939f6fddc905cdfb85ad92220ac2819b5 (diff) |
Expose more entry points to the verifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1815 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/Verifier.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index a7f5369a60..6e18a824a4 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -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); } |