These methods are inlined
authorChris Lattner <sabre@nondot.org>
Thu, 18 Nov 2004 17:47:13 +0000 (17:47 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 18 Nov 2004 17:47:13 +0000 (17:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17958 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Instructions.cpp

index 44167cbae714ce8e2e79dc48e9a181ab8fb51da5..29418ce8574098b82180275e06e4a5f60e99520a 100644 (file)
@@ -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
 //===----------------------------------------------------------------------===//