Update for llvm api change.

llvm-svn: 309916
This commit is contained in:
Rafael Espindola 2017-08-03 02:45:01 +00:00
parent c8befe687f
commit 86b875fc08
1 changed files with 0 additions and 5 deletions

View File

@ -260,7 +260,6 @@ void IRExecutionUnit::GetRunnableInfo(Status &error, lldb::addr_t &func_addr,
llvm::Triple triple(m_module->getTargetTriple());
llvm::Reloc::Model relocModel;
llvm::CodeModel::Model codeModel;
if (triple.isOSBinFormatELF()) {
relocModel = llvm::Reloc::Static;
@ -268,9 +267,6 @@ void IRExecutionUnit::GetRunnableInfo(Status &error, lldb::addr_t &func_addr,
relocModel = llvm::Reloc::PIC_;
}
// This will be small for 32-bit and large for 64-bit.
codeModel = llvm::CodeModel::JITDefault;
m_module_ap->getContext().setInlineAsmDiagnosticHandler(ReportInlineAsmError,
&error);
@ -281,7 +277,6 @@ void IRExecutionUnit::GetRunnableInfo(Status &error, lldb::addr_t &func_addr,
.setRelocationModel(relocModel)
.setMCJITMemoryManager(
std::unique_ptr<MemoryManager>(new MemoryManager(*this)))
.setCodeModel(codeModel)
.setOptLevel(llvm::CodeGenOpt::Less)
.setUseOrcMCJITReplacement(true);