[llvm-commits] CVS: llvm/lib/VMCore/Instructions.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Nov 18 09:47:27 PST 2004
Changes in directory llvm/lib/VMCore:
Instructions.cpp updated: 1.6 -> 1.7
---
Log message:
These methods are inlined
---
Diffs of the changes: (+0 -30)
Index: llvm/lib/VMCore/Instructions.cpp
diff -u llvm/lib/VMCore/Instructions.cpp:1.6 llvm/lib/VMCore/Instructions.cpp:1.7
--- llvm/lib/VMCore/Instructions.cpp:1.6 Wed Nov 17 15:02:25 2004
+++ llvm/lib/VMCore/Instructions.cpp Thu Nov 18 11:47:13 2004
@@ -149,17 +149,6 @@
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 @@
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
//===----------------------------------------------------------------------===//
More information about the llvm-commits
mailing list