diff options
author | Chris Lattner <sabre@nondot.org> | 2004-11-18 17:47:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-11-18 17:47:13 +0000 |
commit | 18e6c22f05f1b5cfa89bdeed8b407afb9255a6b0 (patch) | |
tree | 9079b70c7d0745199010d76cd69936d1eaf4674b /lib/VMCore/Instructions.cpp | |
parent | 721aef6897790abc370cd2eddbefa8d0c0a1f6b3 (diff) |
These methods are inlined
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17958 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Instructions.cpp')
-rw-r--r-- | lib/VMCore/Instructions.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp index 44167cbae7..29418ce857 100644 --- a/lib/VMCore/Instructions.cpp +++ b/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 //===----------------------------------------------------------------------===// |