summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-02-20 17:54:35 +0000
committerChris Lattner <sabre@nondot.org>2002-02-20 17:54:35 +0000
commitd6caeddd0b4a7c77a4ac4abb3633749342812334 (patch)
tree8d939ea6be80da26882a027a2c00751e7939f6de /llvm
parent480fa41d2ce8775dd7cd831e89858d56d995baa7 (diff)
downloadbcm5719-llvm-d6caeddd0b4a7c77a4ac4abb3633749342812334.tar.gz
bcm5719-llvm-d6caeddd0b4a7c77a4ac4abb3633749342812334.zip
Modernize verifier interface
llvm-svn: 1780
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Analysis/Verifier.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/llvm/include/llvm/Analysis/Verifier.h b/llvm/include/llvm/Analysis/Verifier.h
index eb125396c5b..4d54f123484 100644
--- a/llvm/include/llvm/Analysis/Verifier.h
+++ b/llvm/include/llvm/Analysis/Verifier.h
@@ -13,16 +13,17 @@
#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
OpenPOWER on IntegriCloud