forked from OSchip/llvm-project
Fix the build by eliminating some more dead code. That'll learn me not to listen to Reid
llvm-svn: 17275
This commit is contained in:
parent
5e8cce5313
commit
c193790dbb
|
@ -124,7 +124,7 @@ protected:
|
||||||
MRegisterInfo(const MRegisterDesc *D, unsigned NR,
|
MRegisterInfo(const MRegisterDesc *D, unsigned NR,
|
||||||
regclass_iterator RegClassBegin, regclass_iterator RegClassEnd,
|
regclass_iterator RegClassBegin, regclass_iterator RegClassEnd,
|
||||||
int CallFrameSetupOpcode = -1, int CallFrameDestroyOpcode = -1);
|
int CallFrameSetupOpcode = -1, int CallFrameDestroyOpcode = -1);
|
||||||
virtual ~MRegisterInfo();
|
virtual ~MRegisterInfo() {}
|
||||||
public:
|
public:
|
||||||
|
|
||||||
enum { // Define some target independent constants
|
enum { // Define some target independent constants
|
||||||
|
|
|
@ -22,30 +22,10 @@ MRegisterInfo::MRegisterInfo(const MRegisterDesc *D, unsigned NR,
|
||||||
assert(NumRegs < FirstVirtualRegister &&
|
assert(NumRegs < FirstVirtualRegister &&
|
||||||
"Target has too many physical registers!");
|
"Target has too many physical registers!");
|
||||||
|
|
||||||
PhysRegClasses = new const TargetRegisterClass*[NumRegs];
|
|
||||||
for (unsigned i = 0; i != NumRegs; ++i)
|
|
||||||
PhysRegClasses[i] = 0;
|
|
||||||
|
|
||||||
// Fill in the PhysRegClasses map
|
|
||||||
for (MRegisterInfo::regclass_iterator I = regclass_begin(),
|
|
||||||
E = regclass_end(); I != E; ++I) {
|
|
||||||
const TargetRegisterClass *RC = *I;
|
|
||||||
for (unsigned i = 0, e = RC->getNumRegs(); i != e; ++i) {
|
|
||||||
unsigned Reg = RC->getRegister(i);
|
|
||||||
assert(PhysRegClasses[Reg] == 0 && "Register in more than one class?");
|
|
||||||
PhysRegClasses[Reg] = RC;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
CallFrameSetupOpcode = CFSO;
|
CallFrameSetupOpcode = CFSO;
|
||||||
CallFrameDestroyOpcode = CFDO;
|
CallFrameDestroyOpcode = CFDO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
MRegisterInfo::~MRegisterInfo() {
|
|
||||||
delete[] PhysRegClasses;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::vector<bool> MRegisterInfo::getAllocatableSet(MachineFunction &MF) const {
|
std::vector<bool> MRegisterInfo::getAllocatableSet(MachineFunction &MF) const {
|
||||||
std::vector<bool> Allocatable(NumRegs);
|
std::vector<bool> Allocatable(NumRegs);
|
||||||
for (MRegisterInfo::regclass_iterator I = regclass_begin(),
|
for (MRegisterInfo::regclass_iterator I = regclass_begin(),
|
||||||
|
|
Loading…
Reference in New Issue