[llvm] r311531 - [Lanai] Remove dead functions from LanaiRegisterInfo
Alex Bradbury via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 23 00:14:48 PDT 2017
Author: asb
Date: Wed Aug 23 00:14:48 2017
New Revision: 311531
URL: http://llvm.org/viewvc/llvm-project?rev=311531&view=rev
Log:
[Lanai] Remove dead functions from LanaiRegisterInfo
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
Modified:
llvm/trunk/lib/Target/Lanai/LanaiRegisterInfo.cpp
llvm/trunk/lib/Target/Lanai/LanaiRegisterInfo.h
Modified: llvm/trunk/lib/Target/Lanai/LanaiRegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Lanai/LanaiRegisterInfo.cpp?rev=311531&r1=311530&r2=311531&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Lanai/LanaiRegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/Lanai/LanaiRegisterInfo.cpp Wed Aug 23 00:14:48 2017
@@ -264,16 +264,6 @@ LanaiRegisterInfo::getFrameRegister(cons
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 {
Modified: llvm/trunk/lib/Target/Lanai/LanaiRegisterInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Lanai/LanaiRegisterInfo.h?rev=311531&r1=311530&r2=311531&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Lanai/LanaiRegisterInfo.h (original)
+++ llvm/trunk/lib/Target/Lanai/LanaiRegisterInfo.h Wed Aug 23 00:14:48 2017
@@ -47,9 +47,6 @@ struct LanaiRegisterInfo : public LanaiG
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;
};
More information about the llvm-commits
mailing list