Modernize verifier interface
authorChris Lattner <sabre@nondot.org>
Wed, 20 Feb 2002 17:54:35 +0000 (17:54 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 20 Feb 2002 17:54:35 +0000 (17:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1780 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/Verifier.h

index eb125396c5b949b372134b45c5bee1f714948859..4d54f123484591ae059c74b8129ee902ccfca7d4 100644 (file)
 #ifndef LLVM_ANALYSIS_VERIFIER_H
 #define LLVM_ANALYSIS_VERIFIER_H
 
-#include <vector>
-#include <string>
+class Pass;
 class Module;
-class Method;
 
-// verify - Check a module or method for validity.  If errors are detected, 
-// error messages corresponding to the problem are added to the errorMsgs 
-// vectors, and a value of true is returned. 
+// createVerifierPass - Check a module or method for validity.  If errors are
+// detected, error messages corresponding to the problem are printed to stderr.
 //
-bool verify(const Module *M, std::vector<std::string> &ErrorMsgs);
-bool verify(const Method *M, std::vector<std::string> &ErrorMsgs);
+Pass *createVerifierPass();
+
+// verifyModule - Check a module for errors, printing messages on stderr.
+// Return true if the module is corrupt.
+//
+bool verifyModule(Module *M);
 
 #endif