Now that the simple isels are dead, so is this.
authorChris Lattner <sabre@nondot.org>
Fri, 19 Aug 2005 18:30:39 +0000 (18:30 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 19 Aug 2005 18:30:39 +0000 (18:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22913 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCRegisterInfo.cpp
lib/Target/PowerPC/PPCRegisterInfo.h

index 8d76ba363dfc04b79287bead52c69dc49c2a1e3e..478af930f9276fb36eff0b905ff0d08f01128190 100644 (file)
@@ -305,23 +305,3 @@ void PPC32RegisterInfo::emitEpilogue(MachineFunction &MF,
 
 #include "PPC32GenRegisterInfo.inc"
 
-const TargetRegisterClass*
-PPC32RegisterInfo::getRegClassForType(const Type* Ty) const {
-  switch (Ty->getTypeID()) {
-    default:              assert(0 && "Invalid type to getClass!");
-    case Type::LongTyID:
-    case Type::ULongTyID: assert(0 && "Long values can't fit in registers!");
-    case Type::BoolTyID:
-    case Type::SByteTyID:
-    case Type::UByteTyID:
-    case Type::ShortTyID:
-    case Type::UShortTyID:
-    case Type::IntTyID:
-    case Type::UIntTyID:
-    case Type::PointerTyID: return &GPRCInstance;
-
-    case Type::FloatTyID:
-    case Type::DoubleTyID: return &FPRCInstance;
-  }
-}
-
index cc70114a39e682d4291739412dcde741f7468d62..442eae269355c48eb711a9423ec18d3a5fb65dc4 100644 (file)
@@ -26,7 +26,6 @@ class PPC32RegisterInfo : public PPC32GenRegisterInfo {
   std::map<unsigned, unsigned> ImmToIdxMap;
 public:
   PPC32RegisterInfo();
-  const TargetRegisterClass* getRegClassForType(const Type* Ty) const;
 
   /// Code Generation virtual methods...
   void storeRegToStackSlot(MachineBasicBlock &MBB,