diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2013-04-08 18:41:23 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2013-04-08 18:41:23 +0000 | 
| commit | 4a16efa3e43e35f0cc9efe3a67f620f0017c3d36 (patch) | |
| tree | 06099edc18d30894081a822b756f117cbe0b8207 /tools/lli/RecordingMemoryManager.h | |
| parent | 482e7bddf617ae804dc47133cb07eb4aa81e45de (diff) | |
Diffstat (limited to 'tools/lli/RecordingMemoryManager.h')
| -rw-r--r-- | tools/lli/RecordingMemoryManager.h | 13 | 
1 files changed, 11 insertions, 2 deletions
| diff --git a/tools/lli/RecordingMemoryManager.h b/tools/lli/RecordingMemoryManager.h index 1590235a793c..991f535fd4c1 100644 --- a/tools/lli/RecordingMemoryManager.h +++ b/tools/lli/RecordingMemoryManager.h @@ -31,9 +31,15 @@ private:    SmallVector<Allocation, 16> AllocatedDataMem;    SmallVector<Allocation, 16> AllocatedCodeMem; +  // FIXME: This is part of a work around to keep sections near one another +  // when MCJIT performs relocations after code emission but before +  // the generated code is moved to the remote target. +  sys::MemoryBlock Near; +  sys::MemoryBlock allocateSection(uintptr_t Size); +  public:    RecordingMemoryManager() {} -  virtual ~RecordingMemoryManager() {} +  virtual ~RecordingMemoryManager();    typedef SmallVectorImpl<Allocation>::const_iterator const_data_iterator;    typedef SmallVectorImpl<Allocation>::const_iterator const_code_iterator; @@ -47,10 +53,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(); | 
