mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 03:25:23 +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:
@@ -16,6 +16,7 @@
|
||||
#include "llvm/CodeGen/MachineFunction.h"
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
#include "llvm/Target/TargetRegisterInfo.h"
|
||||
#include "llvm/Target/TargetSubtargetInfo.h"
|
||||
#include <cstdlib>
|
||||
using namespace llvm;
|
||||
|
||||
@@ -34,7 +35,8 @@ int TargetFrameLowering::getFrameIndexOffset(const MachineFunction &MF,
|
||||
|
||||
int TargetFrameLowering::getFrameIndexReference(const MachineFunction &MF,
|
||||
int FI, unsigned &FrameReg) const {
|
||||
const TargetRegisterInfo *RI = MF.getTarget().getRegisterInfo();
|
||||
const TargetRegisterInfo *RI =
|
||||
MF.getTarget().getSubtargetImpl()->getRegisterInfo();
|
||||
|
||||
// By default, assume all frame indices are referenced via whatever
|
||||
// getFrameRegister() says. The target can override this if it's doing
|
||||
|
Reference in New Issue
Block a user