diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-10-07 13:39:22 +0000 | 
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-10-07 13:39:22 +0000 | 
| commit | e90fd9c5e09a9c677b5d7143364d4e828c3a1c8a (patch) | |
| tree | 36cebf15cb85eb12fcc8971db10928dd4e70a9fd /llvm | |
| parent | 41d630f448ed8b7ac6b2d513337bcf51a6bd4407 (diff) | |
| download | bcm5719-llvm-e90fd9c5e09a9c677b5d7143364d4e828c3a1c8a.tar.gz bcm5719-llvm-e90fd9c5e09a9c677b5d7143364d4e828c3a1c8a.zip | |
Remove getEHExceptionRegister and getEHHandlerRegister.
They haven't been used for a long time. Patch by MathOnNapkins.
llvm-svn: 192099
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp | 8 | ||||
| -rw-r--r-- | llvm/lib/Target/ARM/ARMBaseRegisterInfo.h | 4 | ||||
| -rw-r--r-- | llvm/lib/Target/Hexagon/HexagonRegisterInfo.cpp | 8 | ||||
| -rw-r--r-- | llvm/lib/Target/Hexagon/HexagonRegisterInfo.h | 4 | ||||
| -rw-r--r-- | llvm/lib/Target/Mips/MipsRegisterInfo.cpp | 9 | ||||
| -rw-r--r-- | llvm/lib/Target/Mips/MipsRegisterInfo.h | 4 | ||||
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp | 8 | ||||
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCRegisterInfo.h | 4 | ||||
| -rw-r--r-- | llvm/lib/Target/Sparc/SparcRegisterInfo.cpp | 7 | ||||
| -rw-r--r-- | llvm/lib/Target/Sparc/SparcRegisterInfo.h | 4 | ||||
| -rw-r--r-- | llvm/lib/Target/X86/X86RegisterInfo.cpp | 8 | ||||
| -rw-r--r-- | llvm/lib/Target/X86/X86RegisterInfo.h | 4 | 
12 files changed, 0 insertions, 72 deletions
| diff --git a/llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp b/llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp index ce89d7beb14..8717dc0cde9 100644 --- a/llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp +++ b/llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp @@ -385,14 +385,6 @@ ARMBaseRegisterInfo::getFrameRegister(const MachineFunction &MF) const {    return ARM::SP;  } -unsigned ARMBaseRegisterInfo::getEHExceptionRegister() const { -  llvm_unreachable("What is the exception register"); -} - -unsigned ARMBaseRegisterInfo::getEHHandlerRegister() const { -  llvm_unreachable("What is the exception handler register"); -} -  /// emitLoadConstPool - Emits a load from constpool to materialize the  /// specified immediate.  void ARMBaseRegisterInfo:: diff --git a/llvm/lib/Target/ARM/ARMBaseRegisterInfo.h b/llvm/lib/Target/ARM/ARMBaseRegisterInfo.h index cdaad053f9f..0d4f54f8917 100644 --- a/llvm/lib/Target/ARM/ARMBaseRegisterInfo.h +++ b/llvm/lib/Target/ARM/ARMBaseRegisterInfo.h @@ -149,10 +149,6 @@ public:    unsigned getFrameRegister(const MachineFunction &MF) const;    unsigned getBaseRegister() const { return BasePtr; } -  // Exception handling queries. -  unsigned getEHExceptionRegister() const; -  unsigned getEHHandlerRegister() const; -    bool isLowRegister(unsigned Reg) const; diff --git a/llvm/lib/Target/Hexagon/HexagonRegisterInfo.cpp b/llvm/lib/Target/Hexagon/HexagonRegisterInfo.cpp index d5ca4d711fd..1786e9daa30 100644 --- a/llvm/lib/Target/Hexagon/HexagonRegisterInfo.cpp +++ b/llvm/lib/Target/Hexagon/HexagonRegisterInfo.cpp @@ -295,13 +295,5 @@ unsigned HexagonRegisterInfo::getStackRegister() const {    return Hexagon::R29;  } -unsigned HexagonRegisterInfo::getEHExceptionRegister() const { -  llvm_unreachable("What is the exception register"); -} - -unsigned HexagonRegisterInfo::getEHHandlerRegister() const { -  llvm_unreachable("What is the exception handler register"); -} -  #define GET_REGINFO_TARGET_DESC  #include "HexagonGenRegisterInfo.inc" diff --git a/llvm/lib/Target/Hexagon/HexagonRegisterInfo.h b/llvm/lib/Target/Hexagon/HexagonRegisterInfo.h index fec86dfc3ef..89af7c38cc6 100644 --- a/llvm/lib/Target/Hexagon/HexagonRegisterInfo.h +++ b/llvm/lib/Target/Hexagon/HexagonRegisterInfo.h @@ -78,10 +78,6 @@ struct HexagonRegisterInfo : public HexagonGenRegisterInfo {    unsigned getFrameRegister(const MachineFunction &MF) const;    unsigned getFrameRegister() const;    unsigned getStackRegister() const; - -  // Exception handling queries. -  unsigned getEHExceptionRegister() const; -  unsigned getEHHandlerRegister() const;  };  } // end namespace llvm diff --git a/llvm/lib/Target/Mips/MipsRegisterInfo.cpp b/llvm/lib/Target/Mips/MipsRegisterInfo.cpp index ee81bae8295..3105b020845 100644 --- a/llvm/lib/Target/Mips/MipsRegisterInfo.cpp +++ b/llvm/lib/Target/Mips/MipsRegisterInfo.cpp @@ -240,12 +240,3 @@ getFrameRegister(const MachineFunction &MF) const {  } -unsigned MipsRegisterInfo:: -getEHExceptionRegister() const { -  llvm_unreachable("What is the exception register"); -} - -unsigned MipsRegisterInfo:: -getEHHandlerRegister() const { -  llvm_unreachable("What is the exception handler register"); -} diff --git a/llvm/lib/Target/Mips/MipsRegisterInfo.h b/llvm/lib/Target/Mips/MipsRegisterInfo.h index c8675242010..0450c6fbe47 100644 --- a/llvm/lib/Target/Mips/MipsRegisterInfo.h +++ b/llvm/lib/Target/Mips/MipsRegisterInfo.h @@ -68,10 +68,6 @@ public:    /// Debug information queries.    unsigned getFrameRegister(const MachineFunction &MF) const; -  /// Exception handling queries. -  unsigned getEHExceptionRegister() const; -  unsigned getEHHandlerRegister() const; -    /// \brief Return GPR register class.    virtual const TargetRegisterClass *intRegClass(unsigned Size) const = 0; diff --git a/llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp b/llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp index aee28302d61..19ccbfcdb16 100644 --- a/llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp +++ b/llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp @@ -691,14 +691,6 @@ unsigned PPCRegisterInfo::getFrameRegister(const MachineFunction &MF) const {      return TFI->hasFP(MF) ? PPC::X31 : PPC::X1;  } -unsigned PPCRegisterInfo::getEHExceptionRegister() const { -  return !Subtarget.isPPC64() ? PPC::R3 : PPC::X3; -} - -unsigned PPCRegisterInfo::getEHHandlerRegister() const { -  return !Subtarget.isPPC64() ? PPC::R4 : PPC::X4; -} -  unsigned PPCRegisterInfo::getBaseRegister(const MachineFunction &MF) const {    if (!hasBasePointer(MF))      return getFrameRegister(MF); diff --git a/llvm/lib/Target/PowerPC/PPCRegisterInfo.h b/llvm/lib/Target/PowerPC/PPCRegisterInfo.h index d02af9e6375..dd3bb405dac 100644 --- a/llvm/lib/Target/PowerPC/PPCRegisterInfo.h +++ b/llvm/lib/Target/PowerPC/PPCRegisterInfo.h @@ -97,10 +97,6 @@ public:    bool hasBasePointer(const MachineFunction &MF) const;    bool canRealignStack(const MachineFunction &MF) const;    bool needsStackRealignment(const MachineFunction &MF) const; - -  // Exception handling queries. -  unsigned getEHExceptionRegister() const; -  unsigned getEHHandlerRegister() const;  };  } // end namespace llvm diff --git a/llvm/lib/Target/Sparc/SparcRegisterInfo.cpp b/llvm/lib/Target/Sparc/SparcRegisterInfo.cpp index 8e14dd95f68..9442d03c129 100644 --- a/llvm/lib/Target/Sparc/SparcRegisterInfo.cpp +++ b/llvm/lib/Target/Sparc/SparcRegisterInfo.cpp @@ -182,10 +182,3 @@ unsigned SparcRegisterInfo::getFrameRegister(const MachineFunction &MF) const {    return SP::I6;  } -unsigned SparcRegisterInfo::getEHExceptionRegister() const { -  llvm_unreachable("What is the exception register"); -} - -unsigned SparcRegisterInfo::getEHHandlerRegister() const { -  llvm_unreachable("What is the exception handler register"); -} diff --git a/llvm/lib/Target/Sparc/SparcRegisterInfo.h b/llvm/lib/Target/Sparc/SparcRegisterInfo.h index 503229d9bd1..00b5a98dd79 100644 --- a/llvm/lib/Target/Sparc/SparcRegisterInfo.h +++ b/llvm/lib/Target/Sparc/SparcRegisterInfo.h @@ -50,10 +50,6 @@ struct SparcRegisterInfo : public SparcGenRegisterInfo {    // Debug information queries.    unsigned getFrameRegister(const MachineFunction &MF) const; - -  // Exception handling queries. -  unsigned getEHExceptionRegister() const; -  unsigned getEHHandlerRegister() const;  };  } // end namespace llvm diff --git a/llvm/lib/Target/X86/X86RegisterInfo.cpp b/llvm/lib/Target/X86/X86RegisterInfo.cpp index 0923310cf31..a60f736f876 100644 --- a/llvm/lib/Target/X86/X86RegisterInfo.cpp +++ b/llvm/lib/Target/X86/X86RegisterInfo.cpp @@ -512,14 +512,6 @@ unsigned X86RegisterInfo::getFrameRegister(const MachineFunction &MF) const {    return TFI->hasFP(MF) ? FramePtr : StackPtr;  } -unsigned X86RegisterInfo::getEHExceptionRegister() const { -  llvm_unreachable("What is the exception register"); -} - -unsigned X86RegisterInfo::getEHHandlerRegister() const { -  llvm_unreachable("What is the exception handler register"); -} -  namespace llvm {  unsigned getX86SubSuperRegister(unsigned Reg, MVT::SimpleValueType VT,                                  bool High) { diff --git a/llvm/lib/Target/X86/X86RegisterInfo.h b/llvm/lib/Target/X86/X86RegisterInfo.h index fb1768214e9..22251b23d53 100644 --- a/llvm/lib/Target/X86/X86RegisterInfo.h +++ b/llvm/lib/Target/X86/X86RegisterInfo.h @@ -126,10 +126,6 @@ public:    unsigned getBaseRegister() const { return BasePtr; }    // FIXME: Move to FrameInfok    unsigned getSlotSize() const { return SlotSize; } - -  // Exception handling queries. -  unsigned getEHExceptionRegister() const; -  unsigned getEHHandlerRegister() const;  };  // getX86SubSuperRegister - X86 utility function. It returns the sub or super | 

