From c193790dbbcaf8a8b38e80c4dbcddc00c196e63a Mon Sep 17 00:00:00 2001 From: Nate Begeman Date: Wed, 27 Oct 2004 05:44:23 +0000 Subject: [PATCH] Fix the build by eliminating some more dead code. That'll learn me not to listen to Reid llvm-svn: 17275 --- llvm/include/llvm/Target/MRegisterInfo.h | 2 +- llvm/lib/Target/MRegisterInfo.cpp | 20 -------------------- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/llvm/include/llvm/Target/MRegisterInfo.h b/llvm/include/llvm/Target/MRegisterInfo.h index c3cc76888a5c..340c8118e11f 100644 --- a/llvm/include/llvm/Target/MRegisterInfo.h +++ b/llvm/include/llvm/Target/MRegisterInfo.h @@ -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 diff --git a/llvm/lib/Target/MRegisterInfo.cpp b/llvm/lib/Target/MRegisterInfo.cpp index 30b54a6414dc..5b8c8e1871e9 100644 --- a/llvm/lib/Target/MRegisterInfo.cpp +++ b/llvm/lib/Target/MRegisterInfo.cpp @@ -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 MRegisterInfo::getAllocatableSet(MachineFunction &MF) const { std::vector Allocatable(NumRegs); for (MRegisterInfo::regclass_iterator I = regclass_begin(),