[llvm-commits] CVS: llvm/include/llvm/Support/CallSite.h

Chris Lattner lattner at cs.uiuc.edu
Fri Oct 31 12:39:00 PST 2003


Changes in directory llvm/include/llvm/Support:

CallSite.h updated: 1.8 -> 1.9

---
Log message:

Did I mention that I _HATE_ CPRs?


---
Diffs of the changes:  (+2 -3)

Index: llvm/include/llvm/Support/CallSite.h
diff -u llvm/include/llvm/Support/CallSite.h:1.8 llvm/include/llvm/Support/CallSite.h:1.9
--- llvm/include/llvm/Support/CallSite.h:1.8	Thu Oct 23 14:33:49 2003
+++ llvm/include/llvm/Support/CallSite.h	Fri Oct 31 12:37:56 2003
@@ -58,9 +58,8 @@
   /// getCalledFunction - Return the function being called if this is a direct
   /// call, otherwise return null (if it's an indirect call).
   ///
-  Function *getCalledFunction() const {
-    return dyn_cast<Function>(getCalledValue());
-  }
+  /// FIXME: This should be inlined once ConstantPointerRefs are gone.  :(
+  Function *getCalledFunction() const;
 
   /// setCalledFunction - Set the callee to the specified value...
   ///





More information about the llvm-commits mailing list