1 //===-- llvm/Analysis/Verifier.h - Module Verifier ---------------*- C++ -*-==//
3 // This file defines the method verifier interface, that can be used for some
4 // sanity checking of input to the system.
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.
9 // To see what specifically is checked, look at the top of Verifier.cpp
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_ANALYSIS_VERIFIER_H
14 #define LLVM_ANALYSIS_VERIFIER_H
19 // createVerifierPass - Check a module or method for validity. If errors are
20 // detected, error messages corresponding to the problem are printed to stderr.
22 Pass *createVerifierPass();
24 // verifyModule - Check a module for errors, printing messages on stderr.
25 // Return true if the module is corrupt.
27 bool verifyModule(Module *M);