mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
Reinstate "Nuke the old JIT."
Approved by Jim Grosbach, Lang Hames, Rafael Espindola. This reinstates commits r215111, 215115, 215116, 215117, 215136. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216982 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -30,7 +30,7 @@ TargetMachine *EngineBuilder::selectTarget() {
|
||||
|
||||
// MCJIT can generate code for remote targets, but the old JIT and Interpreter
|
||||
// must use the host architecture.
|
||||
if (UseMCJIT && WhichEngine != EngineKind::Interpreter && M)
|
||||
if (WhichEngine != EngineKind::Interpreter && M)
|
||||
TT.setTriple(M->getTargetTriple());
|
||||
|
||||
return selectTarget(TT, MArch, MCPU, MAttrs);
|
||||
@@ -89,8 +89,7 @@ TargetMachine *EngineBuilder::selectTarget(const Triple &TargetTriple,
|
||||
}
|
||||
|
||||
// FIXME: non-iOS ARM FastISel is broken with MCJIT.
|
||||
if (UseMCJIT &&
|
||||
TheTriple.getArch() == Triple::arm &&
|
||||
if (TheTriple.getArch() == Triple::arm &&
|
||||
!TheTriple.isiOS() &&
|
||||
OptLevel == CodeGenOpt::None) {
|
||||
OptLevel = CodeGenOpt::Less;
|
||||
|
||||
Reference in New Issue
Block a user