The simple isel being gone makes this dead!
authorChris Lattner <sabre@nondot.org>
Fri, 19 Aug 2005 18:32:03 +0000 (18:32 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 19 Aug 2005 18:32:03 +0000 (18:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22914 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86RegisterInfo.cpp
lib/Target/X86/X86RegisterInfo.h

index 1010edeea985c67f0e9d77543a4bd509196d8016..732b8cf2487cff806f7adc6658f687dce9823ef7 100644 (file)
@@ -572,22 +572,3 @@ void X86RegisterInfo::emitEpilogue(MachineFunction &MF,
 
 #include "X86GenRegisterInfo.inc"
 
-const TargetRegisterClass*
-X86RegisterInfo::getRegClassForType(const Type* Ty) const {
-  switch (Ty->getTypeID()) {
-  case Type::LongTyID:
-  case Type::ULongTyID: assert(0 && "Long values can't fit in registers!");
-  default:              assert(0 && "Invalid type to getClass!");
-  case Type::BoolTyID:
-  case Type::SByteTyID:
-  case Type::UByteTyID:   return &R8Instance;
-  case Type::ShortTyID:
-  case Type::UShortTyID:  return &R16Instance;
-  case Type::IntTyID:
-  case Type::UIntTyID:
-  case Type::PointerTyID: return &R32Instance;
-
-  case Type::FloatTyID:
-  case Type::DoubleTyID: return &RFPInstance;
-  }
-}
index 7efc85df56a55db3f48e91398b24784b8acf0f5b..8da92f6bb012dc5fd6c1c0bc56d0027a9e3427f1 100644 (file)
@@ -24,7 +24,6 @@ namespace llvm {
 
 struct X86RegisterInfo : public X86GenRegisterInfo {
   X86RegisterInfo();
-  const TargetRegisterClass* getRegClassForType(const Type* Ty) const;
 
   /// Code Generation virtual methods...
   void storeRegToStackSlot(MachineBasicBlock &MBB,