Invalidate instruction cache when setting memory to be executable.
authorTim Northover <t.p.northover@gmail.com>
Sun, 19 May 2013 15:28:16 +0000 (15:28 +0000)
committerTim Northover <t.p.northover@gmail.com>
Sun, 19 May 2013 15:28:16 +0000 (15:28 +0000)
commit820b147493d6d534f9482f1e7d4ff5af99d095b4
tree4aff1b9fa116a096d343896fd388bb0b3955a63d
parentff9a6b44e003f4abcc0231335824c4fe2b616950
Invalidate instruction cache when setting memory to be executable.

lli's remote MCJIT code calls setExecutable just prior to running
code. In line with Darwin behaviour this seems to be the place to
invalidate any caches needed so that relocations can take effect
properly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182213 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Unix/Memory.inc
test/ExecutionEngine/MCJIT/remote/lit.local.cfg [deleted file]
test/ExecutionEngine/MCJIT/remote/test-common-symbols-remote.ll
test/ExecutionEngine/MCJIT/remote/test-data-align-remote.ll
test/ExecutionEngine/MCJIT/remote/test-global-init-nonzero-remote.ll
test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-remote.ll