[JITLink] Add a setProtectionFlags method to jitlink::Section.
authorLang Hames <lhames@gmail.com>
Wed, 31 Mar 2021 00:53:59 +0000 (17:53 -0700)
committerLang Hames <lhames@gmail.com>
Wed, 31 Mar 2021 00:56:29 +0000 (17:56 -0700)
commit3a83b8b2d29e020b8ccde42d0949db45c7eb356a
tree182455efbfae2da7e9765b8ead42a404fddda311
parent9eef0fae2b840cef0b44cf94517f70a41cd84d42
[JITLink] Add a setProtectionFlags method to jitlink::Section.

This allows clients to modify the memory protection settings on sections via
jitlink passes. This can be used to, for example, override the default settings
on text pages and make them Read/Write/Executable under the JIT.
llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h