summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/XCore
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2012-03-11 06:46:40 +0000
committerCraig Topper <craig.topper@gmail.com>2012-03-11 06:46:40 +0000
commit41bd30e027fa95144963bda5aa00217f3e02ed08 (patch)
treedc236050c41ce081b518ba5f1bab2b3a549e7375 /llvm/lib/Target/XCore
parentfe3b069a6a8071fa57190851df8adc49f6c4731d (diff)
downloadbcm5719-llvm-41bd30e027fa95144963bda5aa00217f3e02ed08.tar.gz
bcm5719-llvm-41bd30e027fa95144963bda5aa00217f3e02ed08.zip
Remove unused functions getArgRegs and getNumArgRegs.
llvm-svn: 152535
Diffstat (limited to 'llvm/lib/Target/XCore')
-rw-r--r--llvm/lib/Target/XCore/XCoreRegisterInfo.cpp14
-rw-r--r--llvm/lib/Target/XCore/XCoreRegisterInfo.h9
2 files changed, 0 insertions, 23 deletions
diff --git a/llvm/lib/Target/XCore/XCoreRegisterInfo.cpp b/llvm/lib/Target/XCore/XCoreRegisterInfo.cpp
index 87302824960..f90be2e880d 100644
--- a/llvm/lib/Target/XCore/XCoreRegisterInfo.cpp
+++ b/llvm/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/llvm/lib/Target/XCore/XCoreRegisterInfo.h b/llvm/lib/Target/XCore/XCoreRegisterInfo.h
index ab6ce560517..7391cfdf073 100644
--- a/llvm/lib/Target/XCore/XCoreRegisterInfo.h
+++ b/llvm/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);
};
OpenPOWER on IntegriCloud