mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-19 04:28:20 +00:00
TargetRegisterInfo: Remove function that fell out of use years ago.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212636 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -813,12 +813,6 @@ public:
|
|||||||
/// getFrameRegister - This method should return the register used as a base
|
/// getFrameRegister - This method should return the register used as a base
|
||||||
/// for values allocated in the current stack frame.
|
/// for values allocated in the current stack frame.
|
||||||
virtual unsigned getFrameRegister(const MachineFunction &MF) const = 0;
|
virtual unsigned getFrameRegister(const MachineFunction &MF) const = 0;
|
||||||
|
|
||||||
/// getCompactUnwindRegNum - This function maps the register to the number for
|
|
||||||
/// compact unwind encoding. Return -1 if the register isn't valid.
|
|
||||||
virtual int getCompactUnwindRegNum(unsigned, bool) const {
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@@ -81,21 +81,6 @@ X86RegisterInfo::X86RegisterInfo(const X86Subtarget &STI)
|
|||||||
BasePtr = Is64Bit ? X86::RBX : X86::ESI;
|
BasePtr = Is64Bit ? X86::RBX : X86::ESI;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// getCompactUnwindRegNum - This function maps the register to the number for
|
|
||||||
/// compact unwind encoding. Return -1 if the register isn't valid.
|
|
||||||
int X86RegisterInfo::getCompactUnwindRegNum(unsigned RegNum, bool isEH) const {
|
|
||||||
switch (getLLVMRegNum(RegNum, isEH)) {
|
|
||||||
case X86::EBX: case X86::RBX: return 1;
|
|
||||||
case X86::ECX: case X86::R12: return 2;
|
|
||||||
case X86::EDX: case X86::R13: return 3;
|
|
||||||
case X86::EDI: case X86::R14: return 4;
|
|
||||||
case X86::ESI: case X86::R15: return 5;
|
|
||||||
case X86::EBP: case X86::RBP: return 6;
|
|
||||||
}
|
|
||||||
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
X86RegisterInfo::trackLivenessAfterRegAlloc(const MachineFunction &MF) const {
|
X86RegisterInfo::trackLivenessAfterRegAlloc(const MachineFunction &MF) const {
|
||||||
// ExeDepsFixer and PostRAScheduler require liveness.
|
// ExeDepsFixer and PostRAScheduler require liveness.
|
||||||
|
@@ -60,10 +60,6 @@ public:
|
|||||||
// FIXME: This should be tablegen'd like getDwarfRegNum is
|
// FIXME: This should be tablegen'd like getDwarfRegNum is
|
||||||
int getSEHRegNum(unsigned i) const;
|
int getSEHRegNum(unsigned i) const;
|
||||||
|
|
||||||
/// getCompactUnwindRegNum - This function maps the register to the number for
|
|
||||||
/// compact unwind encoding. Return -1 if the register isn't valid.
|
|
||||||
int getCompactUnwindRegNum(unsigned RegNum, bool isEH) const override;
|
|
||||||
|
|
||||||
/// Code Generation virtual methods...
|
/// Code Generation virtual methods...
|
||||||
///
|
///
|
||||||
bool trackLivenessAfterRegAlloc(const MachineFunction &MF) const override;
|
bool trackLivenessAfterRegAlloc(const MachineFunction &MF) const override;
|
||||||
|
Reference in New Issue
Block a user