[llvm-commits] CVS: llvm/include/llvm/Support/CallSite.h
Chris Lattner
lattner at cs.uiuc.edu
Thu Nov 18 09:47:10 PST 2004
Changes in directory llvm/include/llvm/Support:
CallSite.h updated: 1.16 -> 1.17
---
Log message:
Update comments, now that CPR's are gone, inline the methods
---
Diffs of the changes: (+3 -2)
Index: llvm/include/llvm/Support/CallSite.h
diff -u llvm/include/llvm/Support/CallSite.h:1.16 llvm/include/llvm/Support/CallSite.h:1.17
--- llvm/include/llvm/Support/CallSite.h:1.16 Sat Nov 13 17:28:10 2004
+++ llvm/include/llvm/Support/CallSite.h Thu Nov 18 11:46:57 2004
@@ -74,8 +74,9 @@
/// getCalledFunction - Return the function being called if this is a direct
/// call, otherwise return null (if it's an indirect call).
///
- /// FIXME: This should be inlined once ConstantPointerRefs are gone. :(
- Function *getCalledFunction() const;
+ Function *getCalledFunction() const {
+ return dyn_cast<Function>(getCalledValue());
+ }
/// setCalledFunction - Set the callee to the specified value...
///
More information about the llvm-commits
mailing list