]> granicus.if.org Git - llvm/commitdiff
[Lanai] Remove dead functions from LanaiRegisterInfo
authorAlex Bradbury <asb@lowrisc.org>
Wed, 23 Aug 2017 07:14:48 +0000 (07:14 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Wed, 23 Aug 2017 07:14:48 +0000 (07:14 +0000)
getEHExceptionRegister and getEHHandlerRegister are unused and were removed
from most backends in rL192099. This patch removes them from Lanai.

Differential Revision: https://reviews.llvm.org/D36829

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311531 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Lanai/LanaiRegisterInfo.cpp
lib/Target/Lanai/LanaiRegisterInfo.h

index fe54589f8b0d9f9ea6470a90c2d1d82cecc29e43..6ea477dce3e8ea150d794dd293873c3474762351 100644 (file)
@@ -264,16 +264,6 @@ LanaiRegisterInfo::getFrameRegister(const MachineFunction & /*MF*/) const {
 
 unsigned LanaiRegisterInfo::getBaseRegister() const { return Lanai::R14; }
 
-unsigned LanaiRegisterInfo::getEHExceptionRegister() const {
-  llvm_unreachable("no exception support");
-  return 0;
-}
-
-unsigned LanaiRegisterInfo::getEHHandlerRegister() const {
-  llvm_unreachable("no exception support");
-  return 0;
-}
-
 const uint32_t *
 LanaiRegisterInfo::getCallPreservedMask(const MachineFunction & /*MF*/,
                                         CallingConv::ID /*CC*/) const {
index d88a19193854308c6a637ace6d029aada778c35d..4e172f2180764307df48bd92084c6294af22a585 100644 (file)
@@ -47,9 +47,6 @@ struct LanaiRegisterInfo : public LanaiGenRegisterInfo {
   unsigned getBaseRegister() const;
   bool hasBasePointer(const MachineFunction &MF) const;
 
-  // Exception handling queries.
-  unsigned getEHExceptionRegister() const;
-  unsigned getEHHandlerRegister() const;
   int getDwarfRegNum(unsigned RegNum, bool IsEH) const;
 };