From 8ad3700a3efea8c02784ad4094fd6f39df4ea425 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 19 Aug 2005 18:32:03 +0000 Subject: [PATCH] The simple isel being gone makes this dead! llvm-svn: 22914 --- llvm/lib/Target/X86/X86RegisterInfo.cpp | 19 ------------------- llvm/lib/Target/X86/X86RegisterInfo.h | 1 - 2 files changed, 20 deletions(-) diff --git a/llvm/lib/Target/X86/X86RegisterInfo.cpp b/llvm/lib/Target/X86/X86RegisterInfo.cpp index 1010edeea985..732b8cf2487c 100644 --- a/llvm/lib/Target/X86/X86RegisterInfo.cpp +++ b/llvm/lib/Target/X86/X86RegisterInfo.cpp @@ -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; - } -} diff --git a/llvm/lib/Target/X86/X86RegisterInfo.h b/llvm/lib/Target/X86/X86RegisterInfo.h index 7efc85df56a5..8da92f6bb012 100644 --- a/llvm/lib/Target/X86/X86RegisterInfo.h +++ b/llvm/lib/Target/X86/X86RegisterInfo.h @@ -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,