Make createVerifierPass return a FunctionPass *.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8449 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Brian Gaeke 2003-09-10 19:37:04 +00:00
parent ffaaf3b8db
commit 053134a1ee
4 changed files with 5 additions and 3 deletions

View File

@ -14,14 +14,14 @@
#ifndef LLVM_ANALYSIS_VERIFIER_H #ifndef LLVM_ANALYSIS_VERIFIER_H
#define LLVM_ANALYSIS_VERIFIER_H #define LLVM_ANALYSIS_VERIFIER_H
class Pass; class FunctionPass;
class Module; class Module;
class Function; class Function;
// createVerifierPass - Check a module or function for validity. If errors are // createVerifierPass - Check a module or function for validity. If errors are
// detected, error messages corresponding to the problem are printed to stderr. // 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. // verifyModule - Check a module for errors, printing messages on stderr.
// Return true if the module is corrupt. This should only be used for // Return true if the module is corrupt. This should only be used for

View File

@ -557,7 +557,7 @@ void Verifier::visitIntrinsicFunctionCall(LLVMIntrinsic::ID ID, CallInst &CI) {
// Implement the public interfaces to this file... // Implement the public interfaces to this file...
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
Pass *createVerifierPass() { FunctionPass *createVerifierPass() {
return new Verifier(); return new Verifier();
} }

View File

@ -8,6 +8,7 @@
#include "llvm/Module.h" #include "llvm/Module.h"
#include "llvm/PassManager.h" #include "llvm/PassManager.h"
#include "llvm/Pass.h"
#include "llvm/Bytecode/Reader.h" #include "llvm/Bytecode/Reader.h"
#include "llvm/Bytecode/WriteBytecodePass.h" #include "llvm/Bytecode/WriteBytecodePass.h"
#include "llvm/Transforms/IPO.h" #include "llvm/Transforms/IPO.h"

View File

@ -8,6 +8,7 @@
#include "llvm/Module.h" #include "llvm/Module.h"
#include "llvm/PassManager.h" #include "llvm/PassManager.h"
#include "llvm/Pass.h"
#include "llvm/Bytecode/Reader.h" #include "llvm/Bytecode/Reader.h"
#include "llvm/Bytecode/WriteBytecodePass.h" #include "llvm/Bytecode/WriteBytecodePass.h"
#include "llvm/Transforms/IPO.h" #include "llvm/Transforms/IPO.h"