diff options
author | Sean Callanan <scallanan@apple.com> | 2012-03-01 02:03:47 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2012-03-01 02:03:47 +0000 |
commit | d5f33a86f0ee245a04718e774c990fb242ecd091 (patch) | |
tree | 045744926753531928369bd694fa2d500fa80b46 /lldb/source/Expression/RecordingMemoryManager.cpp | |
parent | 1ee768db53dfbaab76f56c11fdc73d3e2e8c3996 (diff) | |
download | bcm5719-llvm-d5f33a86f0ee245a04718e774c990fb242ecd091.tar.gz bcm5719-llvm-d5f33a86f0ee245a04718e774c990fb242ecd091.zip |
Updated LLVM to take a new MC JIT that supports
allocations by section. We install these sections
in the target process and inform the JIT of their
new locations.
Also removed some unused variable warnings.
llvm-svn: 151789
Diffstat (limited to 'lldb/source/Expression/RecordingMemoryManager.cpp')
-rw-r--r-- | lldb/source/Expression/RecordingMemoryManager.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lldb/source/Expression/RecordingMemoryManager.cpp b/lldb/source/Expression/RecordingMemoryManager.cpp index 3d0cda32745..5b9e33f79c7 100644 --- a/lldb/source/Expression/RecordingMemoryManager.cpp +++ b/lldb/source/Expression/RecordingMemoryManager.cpp @@ -10,6 +10,7 @@ // C Includes // C++ Includes // Other libraries and framework includes +#include "llvm/ExecutionEngine/ExecutionEngine.h" // Project includes #include "lldb/Expression/RecordingMemoryManager.h" @@ -276,6 +277,20 @@ RecordingMemoryManager::CommitAllocations (Process &process) return ret; } +void +RecordingMemoryManager::ReportAllocations (llvm::ExecutionEngine &engine) +{ + for (AllocationList::iterator ai = m_allocations.begin(), ae = m_allocations.end(); + ai != ae; + ++ai) + { + if (!ai->m_allocated) + continue; + + engine.mapSectionAddress((void*)ai->m_local_start, ai->m_remote_start); + } +} + bool RecordingMemoryManager::WriteData (Process &process) { |