mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 20:26:07 +00:00
Remove the TargetMachine forwards for TargetSubtargetInfo based
information and update all callers. No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214781 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -214,7 +214,7 @@ bool PPCCTRLoops::mightUseCTR(const Triple &TT, BasicBlock *BB) {
|
||||
|
||||
if (!TM)
|
||||
return true;
|
||||
const TargetLowering *TLI = TM->getTargetLowering();
|
||||
const TargetLowering *TLI = TM->getSubtargetImpl()->getTargetLowering();
|
||||
|
||||
if (Function *F = CI->getCalledFunction()) {
|
||||
// Most intrinsics don't become function calls, but some might.
|
||||
@@ -384,7 +384,7 @@ bool PPCCTRLoops::mightUseCTR(const Triple &TT, BasicBlock *BB) {
|
||||
} else if (SwitchInst *SI = dyn_cast<SwitchInst>(J)) {
|
||||
if (!TM)
|
||||
return true;
|
||||
const TargetLowering *TLI = TM->getTargetLowering();
|
||||
const TargetLowering *TLI = TM->getSubtargetImpl()->getTargetLowering();
|
||||
|
||||
if (TLI->supportJumpTables() &&
|
||||
SI->getNumCases()+1 >= (unsigned) TLI->getMinimumJumpTableEntries())
|
||||
|
Reference in New Issue
Block a user