aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-02-26 21:45:33 +0000
committerChris Lattner <sabre@nondot.org>2002-02-26 21:45:33 +0000
commit3b2541424f771ae11c30675ce06da7b380780028 (patch)
tree257c65f4e4d1a670232540e4cb7283a6dffa1029 /lib/VMCore
parent9039ba9939f6fddc905cdfb85ad92220ac2819b5 (diff)
downloadexternal_llvm-3b2541424f771ae11c30675ce06da7b380780028.zip
external_llvm-3b2541424f771ae11c30675ce06da7b380780028.tar.gz
external_llvm-3b2541424f771ae11c30675ce06da7b380780028.tar.bz2
Expose more entry points to the verifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1815 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/Verifier.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp
index a7f5369..6e18a82 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);
}