summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ClangExpressionParser.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2012-03-01 02:03:47 +0000
committerSean Callanan <scallanan@apple.com>2012-03-01 02:03:47 +0000
commitd5f33a86f0ee245a04718e774c990fb242ecd091 (patch)
tree045744926753531928369bd694fa2d500fa80b46 /lldb/source/Expression/ClangExpressionParser.cpp
parent1ee768db53dfbaab76f56c11fdc73d3e2e8c3996 (diff)
downloadbcm5719-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/ClangExpressionParser.cpp')
-rw-r--r--lldb/source/Expression/ClangExpressionParser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Expression/ClangExpressionParser.cpp b/lldb/source/Expression/ClangExpressionParser.cpp
index fe1a6ac923d..311914649ca 100644
--- a/lldb/source/Expression/ClangExpressionParser.cpp
+++ b/lldb/source/Expression/ClangExpressionParser.cpp
@@ -363,7 +363,7 @@ ClangExpressionParser::Parse (Stream &stream)
diag_buf->FlushDiagnostics (m_compiler->getDiagnostics());
MemoryBuffer *memory_buffer = MemoryBuffer::getMemBufferCopy(m_expr.Text(), __FUNCTION__);
- FileID memory_buffer_file_id = m_compiler->getSourceManager().createMainFileIDForMemBuffer (memory_buffer);
+ m_compiler->getSourceManager().createMainFileIDForMemBuffer (memory_buffer);
diag_buf->BeginSourceFile(m_compiler->getLangOpts(), &m_compiler->getPreprocessor());
@@ -626,6 +626,7 @@ ClangExpressionParser::PrepareForExecution (lldb::addr_t &func_allocation_addr,
}
jit_memory_manager->CommitAllocations(*process);
+ jit_memory_manager->ReportAllocations(*execution_engine);
jit_memory_manager->WriteData(*process);
std::vector<JittedFunction>::iterator pos, end = m_jitted_functions.end();
OpenPOWER on IntegriCloud