diff options
author | Andrew Kaylor <andrew.kaylor@intel.com> | 2012-11-15 23:50:01 +0000 |
---|---|---|
committer | Andrew Kaylor <andrew.kaylor@intel.com> | 2012-11-15 23:50:01 +0000 |
commit | a342cb9613d33a50e25800d1d2414bec31249ab6 (patch) | |
tree | 7f0814847e10d3f1ce87575c47321120964f387c /llvm/tools/lli/RecordingMemoryManager.h | |
parent | dcc794906556b5e7fbf407226a725ed13fd8287e (diff) | |
download | bcm5719-llvm-a342cb9613d33a50e25800d1d2414bec31249ab6.tar.gz bcm5719-llvm-a342cb9613d33a50e25800d1d2414bec31249ab6.zip |
Interface changes to allow RuntimeDyld memory managers to set memory permissions after an object has been loaded.
llvm-svn: 168114
Diffstat (limited to 'llvm/tools/lli/RecordingMemoryManager.h')
-rw-r--r-- | llvm/tools/lli/RecordingMemoryManager.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/tools/lli/RecordingMemoryManager.h b/llvm/tools/lli/RecordingMemoryManager.h index 1590235a793..20fd0c2e6ed 100644 --- a/llvm/tools/lli/RecordingMemoryManager.h +++ b/llvm/tools/lli/RecordingMemoryManager.h @@ -47,10 +47,13 @@ public: unsigned SectionID); uint8_t *allocateDataSection(uintptr_t Size, unsigned Alignment, - unsigned SectionID); + unsigned SectionID, bool IsReadOnly); void *getPointerToNamedFunction(const std::string &Name, bool AbortOnFailure = true); + + bool applyPermissions(std::string *ErrMsg) { return false; } + // The following obsolete JITMemoryManager calls are stubbed out for // this model. void setMemoryWritable(); |