diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-03-11 06:46:40 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-03-11 06:46:40 +0000 |
commit | 048e9bdbeb9c2a9de1a4effde24ffe4946ca37c2 (patch) | |
tree | 08bc885746671bb4c4383dad31cf45df9550110c | |
parent | 3d3abe0852d5f499bed7ab014519dd582a0a795d (diff) | |
download | external_llvm-048e9bdbeb9c2a9de1a4effde24ffe4946ca37c2.zip external_llvm-048e9bdbeb9c2a9de1a4effde24ffe4946ca37c2.tar.gz external_llvm-048e9bdbeb9c2a9de1a4effde24ffe4946ca37c2.tar.bz2 |
Remove unused functions getArgRegs and getNumArgRegs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152535 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/XCore/XCoreRegisterInfo.cpp | 14 | ||||
-rw-r--r-- | lib/Target/XCore/XCoreRegisterInfo.h | 9 |
2 files changed, 0 insertions, 23 deletions
diff --git a/lib/Target/XCore/XCoreRegisterInfo.cpp b/lib/Target/XCore/XCoreRegisterInfo.cpp index 8730282..f90be2e 100644 --- a/lib/Target/XCore/XCoreRegisterInfo.cpp +++ b/lib/Target/XCore/XCoreRegisterInfo.cpp @@ -54,20 +54,6 @@ static inline bool isImmU16(unsigned val) { return val < (1 << 16); } -static const unsigned XCore_ArgRegs[] = { - XCore::R0, XCore::R1, XCore::R2, XCore::R3 -}; - -const unsigned * XCoreRegisterInfo::getArgRegs(const MachineFunction *MF) -{ - return XCore_ArgRegs; -} - -unsigned XCoreRegisterInfo::getNumArgRegs(const MachineFunction *MF) -{ - return array_lengthof(XCore_ArgRegs); -} - bool XCoreRegisterInfo::needsFrameMoves(const MachineFunction &MF) { return MF.getMMI().hasDebugInfo() || MF.getFunction()->needsUnwindTableEntry(); diff --git a/lib/Target/XCore/XCoreRegisterInfo.h b/lib/Target/XCore/XCoreRegisterInfo.h index ab6ce56..7391cfd 100644 --- a/lib/Target/XCore/XCoreRegisterInfo.h +++ b/lib/Target/XCore/XCoreRegisterInfo.h @@ -62,15 +62,6 @@ public: // Debug information queries. unsigned getFrameRegister(const MachineFunction &MF) const; - //! Return the array of argument passing registers - /*! - \note The size of this array is returned by getArgRegsSize(). - */ - static const unsigned *getArgRegs(const MachineFunction *MF = 0); - - //! Return the size of the argument passing register array - static unsigned getNumArgRegs(const MachineFunction *MF = 0); - //! Return whether to emit frame moves static bool needsFrameMoves(const MachineFunction &MF); }; |