mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-23 12:45:47 +00:00
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:
parent
ffaaf3b8db
commit
053134a1ee
@ -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
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user