mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-26 05:36:36 +00:00
Modernize verifier interface
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1780 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a9a16c712e
commit
62cca70d34
@ -13,16 +13,17 @@
|
|||||||
#ifndef LLVM_ANALYSIS_VERIFIER_H
|
#ifndef LLVM_ANALYSIS_VERIFIER_H
|
||||||
#define LLVM_ANALYSIS_VERIFIER_H
|
#define LLVM_ANALYSIS_VERIFIER_H
|
||||||
|
|
||||||
#include <vector>
|
class Pass;
|
||||||
#include <string>
|
|
||||||
class Module;
|
class Module;
|
||||||
class Method;
|
|
||||||
|
|
||||||
// verify - Check a module or method for validity. If errors are detected,
|
// createVerifierPass - Check a module or method for validity. If errors are
|
||||||
// error messages corresponding to the problem are added to the errorMsgs
|
// detected, error messages corresponding to the problem are printed to stderr.
|
||||||
// vectors, and a value of true is returned.
|
|
||||||
//
|
//
|
||||||
bool verify(const Module *M, std::vector<std::string> &ErrorMsgs);
|
Pass *createVerifierPass();
|
||||||
bool verify(const Method *M, std::vector<std::string> &ErrorMsgs);
|
|
||||||
|
// verifyModule - Check a module for errors, printing messages on stderr.
|
||||||
|
// Return true if the module is corrupt.
|
||||||
|
//
|
||||||
|
bool verifyModule(Module *M);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user