mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +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:
@ -23,6 +23,7 @@
|
||||
#include "llvm/CodeGen/MachineFunctionPass.h"
|
||||
#include "llvm/Support/MathExtras.h"
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
#include "llvm/Target/TargetSubtargetInfo.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "ppc-branch-select"
|
||||
@ -63,8 +64,8 @@ FunctionPass *llvm::createPPCBranchSelectionPass() {
|
||||
}
|
||||
|
||||
bool PPCBSel::runOnMachineFunction(MachineFunction &Fn) {
|
||||
const PPCInstrInfo *TII =
|
||||
static_cast<const PPCInstrInfo*>(Fn.getTarget().getInstrInfo());
|
||||
const PPCInstrInfo *TII = static_cast<const PPCInstrInfo *>(
|
||||
Fn.getTarget().getSubtargetImpl()->getInstrInfo());
|
||||
// Give the blocks of the function a dense, in-order, numbering.
|
||||
Fn.RenumberBlocks();
|
||||
BlockSizes.resize(Fn.getNumBlockIDs());
|
||||
|
Reference in New Issue
Block a user