Expose more entry points to the verifier
authorChris Lattner <sabre@nondot.org>
Tue, 26 Feb 2002 21:45:33 +0000 (21:45 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 26 Feb 2002 21:45:33 +0000 (21:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1815 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Verifier.cpp

index a7f5369a6086895ce54b25dfd2bc71475bb3bc1e..6e18a824a4ef3d67a24390f42088f6c0e89267fc 100644 (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);
 }