[Lldb-commits] [lldb] r309916 - Update for llvm api change.
Rafael Espindola via lldb-commits
lldb-commits at lists.llvm.org
Wed Aug 2 19:45:01 PDT 2017
Author: rafael
Date: Wed Aug 2 19:45:01 2017
New Revision: 309916
URL: http://llvm.org/viewvc/llvm-project?rev=309916&view=rev
Log:
Update for llvm api change.
Modified:
lldb/trunk/source/Expression/IRExecutionUnit.cpp
Modified: lldb/trunk/source/Expression/IRExecutionUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/IRExecutionUnit.cpp?rev=309916&r1=309915&r2=309916&view=diff
==============================================================================
--- lldb/trunk/source/Expression/IRExecutionUnit.cpp (original)
+++ lldb/trunk/source/Expression/IRExecutionUnit.cpp Wed Aug 2 19:45:01 2017
@@ -260,7 +260,6 @@ void IRExecutionUnit::GetRunnableInfo(St
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(St
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(St
.setRelocationModel(relocModel)
.setMCJITMemoryManager(
std::unique_ptr<MemoryManager>(new MemoryManager(*this)))
- .setCodeModel(codeModel)
.setOptLevel(llvm::CodeGenOpt::Less)
.setUseOrcMCJITReplacement(true);
More information about the lldb-commits
mailing list