summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-11-18 17:47:13 +0000
committerChris Lattner <sabre@nondot.org>2004-11-18 17:47:13 +0000
commitde5626cd40821b19a5f35ed3c0f440ceecf7aeca (patch)
treed23778f67b416228aa8580ce30e70a0dcc409384
parent8a8e988766a00d878af1f379b9bd249ecb01e31d (diff)
downloadbcm5719-llvm-de5626cd40821b19a5f35ed3c0f440ceecf7aeca.tar.gz
bcm5719-llvm-de5626cd40821b19a5f35ed3c0f440ceecf7aeca.zip
These methods are inlined
llvm-svn: 17958
-rw-r--r--llvm/lib/VMCore/Instructions.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/llvm/lib/VMCore/Instructions.cpp b/llvm/lib/VMCore/Instructions.cpp
index 44167cbae71..29418ce8574 100644
--- a/llvm/lib/VMCore/Instructions.cpp
+++ b/llvm/lib/VMCore/Instructions.cpp
@@ -149,17 +149,6 @@ CallInst::CallInst(const CallInst &CI)
Operands.push_back(Use(CI.Operands[i], this));
}
-const Function *CallInst::getCalledFunction() const {
- if (const Function *F = dyn_cast<Function>(Operands[0]))
- return F;
- return 0;
-}
-Function *CallInst::getCalledFunction() {
- if (Function *F = dyn_cast<Function>(Operands[0]))
- return F;
- return 0;
-}
-
//===----------------------------------------------------------------------===//
// InvokeInst Implementation
@@ -210,25 +199,6 @@ InvokeInst::InvokeInst(const InvokeInst &CI)
Operands.push_back(Use(CI.Operands[i], this));
}
-const Function *InvokeInst::getCalledFunction() const {
- if (const Function *F = dyn_cast<Function>(Operands[0]))
- return F;
- return 0;
-}
-Function *InvokeInst::getCalledFunction() {
- if (Function *F = dyn_cast<Function>(Operands[0]))
- return F;
- return 0;
-}
-
-// FIXME: Is this supposed to be here?
-Function *CallSite::getCalledFunction() const {
- Value *Callee = getCalledValue();
- if (Function *F = dyn_cast<Function>(Callee))
- return F;
- return 0;
-}
-
//===----------------------------------------------------------------------===//
// ReturnInst Implementation
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud