diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-08-19 04:27:03 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-08-19 04:27:03 +0000 |
commit | 7c03d9572509165dcbe30aaa4e6b347e36874e41 (patch) | |
tree | 5a7e5bb66282c87559df46f58411623cd09188bd /lldb/source/Expression/IRExecutionUnit.cpp | |
parent | a296664479f578748fa2476aa6fac290dc851dfc (diff) | |
download | bcm5719-llvm-7c03d9572509165dcbe30aaa4e6b347e36874e41.tar.gz bcm5719-llvm-7c03d9572509165dcbe30aaa4e6b347e36874e41.zip |
Update for llvm api change.
llvm-svn: 215969
Diffstat (limited to 'lldb/source/Expression/IRExecutionUnit.cpp')
-rw-r--r-- | lldb/source/Expression/IRExecutionUnit.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lldb/source/Expression/IRExecutionUnit.cpp b/lldb/source/Expression/IRExecutionUnit.cpp index 76956082da0..090f88fc1bf 100644 --- a/lldb/source/Expression/IRExecutionUnit.cpp +++ b/lldb/source/Expression/IRExecutionUnit.cpp @@ -295,7 +295,7 @@ IRExecutionUnit::GetRunnableInfo(Error &error, m_module_ap->getContext().setInlineAsmDiagnosticHandler(ReportInlineAsmError, &error); - llvm::EngineBuilder builder(m_module_ap.get()); + llvm::EngineBuilder builder(std::move(m_module_ap)); builder.setEngineKind(llvm::EngineKind::JIT) .setErrorStr(&error_string) @@ -326,10 +326,6 @@ IRExecutionUnit::GetRunnableInfo(Error &error, error.SetErrorStringWithFormat("Couldn't JIT the function: %s", error_string.c_str()); return; } - else - { - m_module_ap.release(); // ownership was transferred - } // Make sure we see all sections, including ones that don't have relocations... m_execution_engine_ap->setProcessAllSections(true); |