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,
|
||||
regclass_iterator RegClassBegin, regclass_iterator RegClassEnd,
|
||||
int CallFrameSetupOpcode = -1, int CallFrameDestroyOpcode = -1);
|
||||
virtual ~MRegisterInfo();
|
||||
virtual ~MRegisterInfo() {}
|
||||
public:
|
||||
|
||||
enum { // Define some target independent constants
|
||||
|
|
|
@ -22,30 +22,10 @@ MRegisterInfo::MRegisterInfo(const MRegisterDesc *D, unsigned NR,
|
|||
assert(NumRegs < FirstVirtualRegister &&
|
||||
"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;
|
||||
CallFrameDestroyOpcode = CFDO;
|
||||
}
|
||||
|
||||
|
||||
MRegisterInfo::~MRegisterInfo() {
|
||||
delete[] PhysRegClasses;
|
||||
}
|
||||
|
||||
std::vector<bool> MRegisterInfo::getAllocatableSet(MachineFunction &MF) const {
|
||||
std::vector<bool> Allocatable(NumRegs);
|
||||
for (MRegisterInfo::regclass_iterator I = regclass_begin(),
|
||||
|
|
Loading…
Reference in New Issue