From 86b875fc088eea7ff09a455ae49db772fcd2c17b Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 3 Aug 2017 02:45:01 +0000 Subject: [PATCH] Update for llvm api change. llvm-svn: 309916 --- lldb/source/Expression/IRExecutionUnit.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lldb/source/Expression/IRExecutionUnit.cpp b/lldb/source/Expression/IRExecutionUnit.cpp index e31483f1728d..46d0c6c8c21c 100644 --- a/lldb/source/Expression/IRExecutionUnit.cpp +++ b/lldb/source/Expression/IRExecutionUnit.cpp @@ -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(new MemoryManager(*this))) - .setCodeModel(codeModel) .setOptLevel(llvm::CodeGenOpt::Less) .setUseOrcMCJITReplacement(true);