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

Press ? to show keyboard shortcuts.
Auditors
yaron.keren
Voluntary Participant
Committed
lhamesApr 17 2014, 11:48 PM
Parents
rL206560: [ELF] Fix GNU_RELRO section name.
Branches
Unknown
Tags
Unknown
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

Apr 18 2014, 12:38 AM ยท #1
yaron.keren commented on this commit.

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

rL206561

llvm/trunk/include/llvm/ExecutionEngine/ExecutionEngine.h

Loading...

llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp

Loading...

llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp

Loading...

llvm/trunk/lib/ExecutionEngine/MCJIT/MCJIT.cpp

Loading...

Add Comment