[ExecutionEngine] Allow JIT clients to enable/disable module verification.
authorLang Hames <lhames@gmail.com>
Fri, 18 Apr 2014 06:48:23 +0000 (06:48 +0000)
committerLang Hames <lhames@gmail.com>
Fri, 18 Apr 2014 06:48:23 +0000 (06:48 +0000)
commitc3097bfd9b2b47474b502efea8f0755bfe4e9d56
tree7ef775db97b7d0a8ad0cbc05f58d5098f9e1f46e
parentbc3655f9c831ae9b7b111cd193e732fc9f341a71
[ExecutionEngine] Allow JIT clients to enable/disable module verification.

Previously module verification was always enabled, with no way to turn it off.
As of this commit, module verification is on by default in Debug builds, and off
by default in release builds. The default behaviour can be overridden by calling
setVerifyModules(bool) on the JIT instance (this works for both the old JIT, and
MCJIT).

<rdar://problem/16150008>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206561 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ExecutionEngine/ExecutionEngine.h
lib/ExecutionEngine/ExecutionEngine.cpp
lib/ExecutionEngine/JIT/JIT.cpp
lib/ExecutionEngine/MCJIT/MCJIT.cpp