diff --git a/llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h b/llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h index c2335b024198..c145c99ef0dc 100644 --- a/llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h +++ b/llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h @@ -596,6 +596,11 @@ public: /// Returns the protection flags for this section. sys::Memory::ProtectionFlags getProtectionFlags() const { return Prot; } + /// Set the protection flags for this section. + void setProtectionFlags(sys::Memory::ProtectionFlags Prot) { + this->Prot = Prot; + } + /// Returns the ordinal for this section. SectionOrdinal getOrdinal() const { return SecOrdinal; }