forked from OSchip/llvm-project
Fixed a bug that was confusing the code generator
on i386 platforms, leading to crashes on simple expressions. llvm-svn: 118114
This commit is contained in:
parent
c0a8bee4b0
commit
c2afd25ea1
|
@ -472,8 +472,6 @@ ClangExpressionParser::MakeJIT (lldb::addr_t &func_addr,
|
|||
|
||||
std::string error_string;
|
||||
|
||||
llvm::Reloc::Model relocation_model = llvm::TargetMachine::getRelocationModel();
|
||||
|
||||
llvm::TargetMachine::setRelocationModel(llvm::Reloc::PIC_);
|
||||
|
||||
m_execution_engine.reset(llvm::ExecutionEngine::createJIT (module,
|
||||
|
@ -483,8 +481,6 @@ ClangExpressionParser::MakeJIT (lldb::addr_t &func_addr,
|
|||
true,
|
||||
CodeModel::Small));
|
||||
|
||||
llvm::TargetMachine::setRelocationModel(relocation_model);
|
||||
|
||||
if (!m_execution_engine.get())
|
||||
{
|
||||
err.SetErrorToGenericError();
|
||||
|
|
Loading…
Reference in New Issue