ΒΆbool verifyModule(const llvm::Module& M,
llvm::raw_ostream* OS = nullptr,
bool* BrokenDebugInfo = nullptr)
bool verifyModule(const llvm::Module& M,
llvm::raw_ostream* OS = nullptr,
bool* BrokenDebugInfo = nullptr)
Description
Check a module for errors. If there are no errors, the function returns false. If an error is found, a message describing the error is written to OS (if non-null) and true is returned.
Declared at: llvm/include/llvm/IR/Verifier.h:100
Parameters
- const llvm::Module& M
- llvm::raw_ostream* OS = nullptr
- bool* BrokenDebugInfo = nullptr
Returns
true if the module is broken. If BrokenDebugInfo is supplied, DebugInfo verification failures won't be considered as error and instead *BrokenDebugInfo will be set to true. Debug info errors can be "recovered" from by stripping the debug info.