summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit85e38bfb2e7113dec3eed8b4514f722681bee240 (patch)
tree29eb460dd3d74070c3818fbcb66062ddb66a0dfc /llvm/lib
parentf3a4b9617e32bb145ce2e6d0c27065cf9cdc82f8 (diff)
downloadbcm5719-llvm-85e38bfb2e7113dec3eed8b4514f722681bee240.tar.gz
bcm5719-llvm-85e38bfb2e7113dec3eed8b4514f722681bee240.zip
Remove unnecessary getOperand/setOperand overriders.
Simplify getReturnValue() llvm-svn: 47614
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/Instructions.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/lib/VMCore/Instructions.cpp b/llvm/lib/VMCore/Instructions.cpp
index e0c14b83286..8a375048bf1 100644
--- a/llvm/lib/VMCore/Instructions.cpp
+++ b/llvm/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();
}
OpenPOWER on IntegriCloud