Method.h no longer includes BasicBlock.h
[oota-llvm.git] / include / llvm / Analysis / Verifier.h
1 //===-- llvm/Analysis/Verifier.h - Module Verifier ---------------*- C++ -*-==//
2 //
3 // This file defines the method verifier interface, that can be used for some
4 // sanity checking of input to the system.
5 //
6 // Note that this does not provide full 'java style' security and verifications,
7 // instead it just tries to ensure that code is well formed.
8 //
9 // To see what specifically is checked, look at the top of Verifier.cpp
10 //
11 //===----------------------------------------------------------------------===//
12
13 #ifndef LLVM_ANALYSIS_VERIFIER_H
14 #define LLVM_ANALYSIS_VERIFIER_H
15
16 #include <vector>
17 #include <string>
18 class Module;
19 class Method;
20
21 // verify - Check a module or method for validity.  If errors are detected, 
22 // error messages corresponding to the problem are added to the errorMsgs 
23 // vectors, and a value of true is returned. 
24 //
25 bool verify(const Module *M, std::vector<std::string> &ErrorMsgs);
26 bool verify(const Method *M, std::vector<std::string> &ErrorMsgs);
27
28 #endif