diff options
Diffstat (limited to 'lib/Target/Mips/MipsTargetMachine.cpp')
| -rw-r--r-- | lib/Target/Mips/MipsTargetMachine.cpp | 21 | 
1 files changed, 10 insertions, 11 deletions
diff --git a/lib/Target/Mips/MipsTargetMachine.cpp b/lib/Target/Mips/MipsTargetMachine.cpp index 85193bffef56..fb79a4bf40c5 100644 --- a/lib/Target/Mips/MipsTargetMachine.cpp +++ b/lib/Target/Mips/MipsTargetMachine.cpp @@ -259,17 +259,16 @@ void MipsPassConfig::addPreRegAlloc() {    addPass(createMipsOptimizePICCallPass());  } -TargetIRAnalysis MipsTargetMachine::getTargetIRAnalysis() { -  return TargetIRAnalysis([this](const Function &F) { -    if (Subtarget->allowMixed16_32()) { -      DEBUG(errs() << "No Target Transform Info Pass Added\n"); -      // FIXME: This is no longer necessary as the TTI returned is per-function. -      return TargetTransformInfo(F.getParent()->getDataLayout()); -    } - -    DEBUG(errs() << "Target Transform Info Pass Added\n"); -    return TargetTransformInfo(BasicTTIImpl(this, F)); -  }); +TargetTransformInfo +MipsTargetMachine::getTargetTransformInfo(const Function &F) { +  if (Subtarget->allowMixed16_32()) { +    DEBUG(errs() << "No Target Transform Info Pass Added\n"); +    // FIXME: This is no longer necessary as the TTI returned is per-function. +    return TargetTransformInfo(F.getParent()->getDataLayout()); +  } + +  DEBUG(errs() << "Target Transform Info Pass Added\n"); +  return TargetTransformInfo(BasicTTIImpl(this, F));  }  // Implemented by targets that want to run passes immediately before  | 
