From 3b2541424f771ae11c30675ce06da7b380780028 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 26 Feb 2002 21:45:33 +0000 Subject: [PATCH] Expose more entry points to the verifier git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1815 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Verifier.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index a7f5369a608..6e18a824a4e 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); } -- 2.34.1