[JIT/Memory] Fix up semantic of setExecutable().
authorDavide Italiano <davide@freebsd.org>
Tue, 17 Nov 2015 16:34:28 +0000 (16:34 +0000)
committerDavide Italiano <davide@freebsd.org>
Tue, 17 Nov 2015 16:34:28 +0000 (16:34 +0000)
commitfa084bd00c2affb7b94766f2e5b06b953e959ab8
tree9bfce4f29282fd80628bab9d79f22a1964b1f5c4
parent8dc1efba5877e8332a425071dcd68bca397e86a0
[JIT/Memory] Fix up semantic of setExecutable().

setExecutable() should do everything that's needed to make the memory
executable on host, i.e. unconditionally set permissions + invalidate
instruction cache. llvm-rtdyld will be updated in my next commit.

Discusseed with: Lang Hames (as part of D13631).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253341 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Unix/Memory.inc