[ExecutionEngine] Allow JIT clients to enable/disable module verification.

Description

[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

Details

Committed
lhamesApr 17 2014, 11:48 PM
Parents
rL206560: [ELF] Fix GNU_RELRO section name.
Branches
Unknown
Tags
Unknown

The code LGTM. One comment, it may make sense to tie VerifyModules to the command line option -verify:

http://llvm.org/docs/Passes.html#verify-module-verifier