aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-02-26 19:08:13 +0000
committerDevang Patel <dpatel@apple.com>2008-02-26 19:08:13 +0000
commitf8989657a741e36ce8655384e1de10886df3d0b0 (patch)
tree904ed60b208b67045a8b42cb6ffad0539fcd5c95 /lib
parentd4cf992230a6cc4d76022c5d47dbd23115bdec44 (diff)
Remove unnecessary getOperand/setOperand overriders.
Simplify getReturnValue() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47614 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/VMCore/Instructions.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp
index e0c14b8328..8a375048bf 100644
--- a/lib/VMCore/Instructions.cpp
+++ b/lib/VMCore/Instructions.cpp
@@ -640,17 +640,6 @@ void ReturnInst::init(const Value * const* retVals, unsigned N) {
}
}
-Value *ReturnInst::getReturnValue(unsigned n) const {
- if (getNumOperands() == 0)
- return 0;
-
- assert (n < getNumOperands() && "getReturnValue out of range!");
- if (getNumOperands() == 1)
- return RetVal;
- else
- return OperandList[n];
-}
-
unsigned ReturnInst::getNumSuccessorsV() const {
return getNumSuccessors();
}