aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-09-10 19:37:04 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-09-10 19:37:04 +0000
commit053134a1ee57289fd6397713a6898f6dd141ba29 (patch)
treedf349c02c6568a8983fa51edcd9755887b4e36e0
parentffaaf3b8db779a2d900fc5e27d0da0bb1ce28563 (diff)
downloadexternal_llvm-053134a1ee57289fd6397713a6898f6dd141ba29.zip
external_llvm-053134a1ee57289fd6397713a6898f6dd141ba29.tar.gz
external_llvm-053134a1ee57289fd6397713a6898f6dd141ba29.tar.bz2
Make createVerifierPass return a FunctionPass *.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8449 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Analysis/Verifier.h4
-rw-r--r--lib/VMCore/Verifier.cpp2
-rw-r--r--tools/extract/extract.cpp1
-rw-r--r--tools/llvm-extract/llvm-extract.cpp1
4 files changed, 5 insertions, 3 deletions
diff --git a/include/llvm/Analysis/Verifier.h b/include/llvm/Analysis/Verifier.h
index 0742ad0..645f1fa 100644
--- a/include/llvm/Analysis/Verifier.h
+++ b/include/llvm/Analysis/Verifier.h
@@ -14,14 +14,14 @@
#ifndef LLVM_ANALYSIS_VERIFIER_H
#define LLVM_ANALYSIS_VERIFIER_H
-class Pass;
+class FunctionPass;
class Module;
class Function;
// createVerifierPass - Check a module or function for validity. If errors are
// detected, error messages corresponding to the problem are printed to stderr.
//
-Pass *createVerifierPass();
+FunctionPass *createVerifierPass();
// verifyModule - Check a module for errors, printing messages on stderr.
// Return true if the module is corrupt. This should only be used for
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp
index 2e43d88..ace5775 100644
--- a/lib/VMCore/Verifier.cpp
+++ b/lib/VMCore/Verifier.cpp
@@ -557,7 +557,7 @@ void Verifier::visitIntrinsicFunctionCall(LLVMIntrinsic::ID ID, CallInst &CI) {
// Implement the public interfaces to this file...
//===----------------------------------------------------------------------===//
-Pass *createVerifierPass() {
+FunctionPass *createVerifierPass() {
return new Verifier();
}
diff --git a/tools/extract/extract.cpp b/tools/extract/extract.cpp
index f3d165b..8359270 100644
--- a/tools/extract/extract.cpp
+++ b/tools/extract/extract.cpp
@@ -8,6 +8,7 @@
#include "llvm/Module.h"
#include "llvm/PassManager.h"
+#include "llvm/Pass.h"
#include "llvm/Bytecode/Reader.h"
#include "llvm/Bytecode/WriteBytecodePass.h"
#include "llvm/Transforms/IPO.h"
diff --git a/tools/llvm-extract/llvm-extract.cpp b/tools/llvm-extract/llvm-extract.cpp
index f3d165b..8359270 100644
--- a/tools/llvm-extract/llvm-extract.cpp
+++ b/tools/llvm-extract/llvm-extract.cpp
@@ -8,6 +8,7 @@
#include "llvm/Module.h"
#include "llvm/PassManager.h"
+#include "llvm/Pass.h"
#include "llvm/Bytecode/Reader.h"
#include "llvm/Bytecode/WriteBytecodePass.h"
#include "llvm/Transforms/IPO.h"