aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/TargetInstrInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-29 21:36:49 +0000
committerChris Lattner <sabre@nondot.org>2009-07-29 21:36:49 +0000
commit2a3868849438a0a0ad4f9a50f2b94eb1639b554e (patch)
tree207c400577ae0d0da9afc4e32ae7c7eaabd04318 /lib/Target/TargetInstrInfo.cpp
parent20a2a0aff3221e2c777558d714753bae0f296c8d (diff)
inline the global 'getInstrOperandRegClass' function into its callers
now that TargetOperandInfo does the heavy lifting. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77508 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetInstrInfo.cpp')
-rw-r--r--lib/Target/TargetInstrInfo.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/Target/TargetInstrInfo.cpp b/lib/Target/TargetInstrInfo.cpp
index afbadbfc63..0f1ade2b9f 100644
--- a/lib/Target/TargetInstrInfo.cpp
+++ b/lib/Target/TargetInstrInfo.cpp
@@ -47,13 +47,3 @@ TargetOperandInfo::getRegClass(const TargetRegisterInfo *TRI) const {
return TRI->getRegClass(RegClass);
}
-/// getInstrOperandRegClass - Return register class of the operand of an
-/// instruction of the specified TargetInstrDesc.
-const TargetRegisterClass*
-llvm::getInstrOperandRegClass(const TargetRegisterInfo *TRI,
- const TargetInstrDesc &II, unsigned Op) {
- // FIXME: Should be an assert!
- if (Op >= II.getNumOperands())
- return NULL;
- return II.OpInfo[Op].getRegClass(TRI);
-}