From 5499742c06250a060896a6f9b62019495c061803 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 19 Aug 2005 18:33:26 +0000 Subject: [PATCH] This code has always been dead for alpha git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22915 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Alpha/AlphaRegisterInfo.cpp | 20 -------------------- lib/Target/Alpha/AlphaRegisterInfo.h | 1 - 2 files changed, 21 deletions(-) diff --git a/lib/Target/Alpha/AlphaRegisterInfo.cpp b/lib/Target/Alpha/AlphaRegisterInfo.cpp index f7c3e5402cb..b6c93531c99 100644 --- a/lib/Target/Alpha/AlphaRegisterInfo.cpp +++ b/lib/Target/Alpha/AlphaRegisterInfo.cpp @@ -333,26 +333,6 @@ void AlphaRegisterInfo::emitEpilogue(MachineFunction &MF, #include "AlphaGenRegisterInfo.inc" -const TargetRegisterClass* -AlphaRegisterInfo::getRegClassForType(const Type* Ty) const { - switch (Ty->getTypeID()) { - default: assert(0 && "Invalid type to getClass!"); - case Type::BoolTyID: - case Type::SByteTyID: - case Type::UByteTyID: - case Type::ShortTyID: - case Type::UShortTyID: - case Type::IntTyID: - case Type::UIntTyID: - case Type::PointerTyID: - case Type::LongTyID: - case Type::ULongTyID: return &GPRCInstance; - - case Type::FloatTyID: - case Type::DoubleTyID: return &FPRCInstance; - } -} - std::string AlphaRegisterInfo::getPrettyName(unsigned reg) { std::string s(RegisterDescriptors[reg].Name); diff --git a/lib/Target/Alpha/AlphaRegisterInfo.h b/lib/Target/Alpha/AlphaRegisterInfo.h index 3374a26190e..d755432321b 100644 --- a/lib/Target/Alpha/AlphaRegisterInfo.h +++ b/lib/Target/Alpha/AlphaRegisterInfo.h @@ -23,7 +23,6 @@ class Type; struct AlphaRegisterInfo : public AlphaGenRegisterInfo { AlphaRegisterInfo(); - const TargetRegisterClass* getRegClassForType(const Type* Ty) const; /// Code Generation virtual methods... void storeRegToStackSlot(MachineBasicBlock &MBB, -- 2.34.1