[llvm-commits] CVS: llvm/lib/Analysis/IPA/GlobalsModRef.cpp

Chris Lattner lattner at cs.uiuc.edu
Fri Dec 17 09:12:36 PST 2004



Changes in directory llvm/lib/Analysis/IPA:

GlobalsModRef.cpp updated: 1.9 -> 1.10
---
Log message:

Actually overload the virtual method.  This fixes 
Regression/Analysis/GlobalsModRef/purecse.ll.  Isn't this what the 
-Woverload-whatever flag would warn about :)


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

Index: llvm/lib/Analysis/IPA/GlobalsModRef.cpp
diff -u llvm/lib/Analysis/IPA/GlobalsModRef.cpp:1.9 llvm/lib/Analysis/IPA/GlobalsModRef.cpp:1.10
--- llvm/lib/Analysis/IPA/GlobalsModRef.cpp:1.9	Wed Dec 15 01:22:13 2004
+++ llvm/lib/Analysis/IPA/GlobalsModRef.cpp	Fri Dec 17 11:12:24 2004
@@ -104,7 +104,8 @@
     /// getModRefBehavior - Return the behavior of the specified function if
     /// called from the specified call site.  The call site may be null in which
     /// case the most generic behavior of this function should be returned.
-    virtual ModRefBehavior getModRefBehavior(Function *F, CallSite CS) {
+    virtual ModRefBehavior getModRefBehavior(Function *F, CallSite CS,
+                                         std::vector<PointerAccessInfo> *Info) {
       if (FunctionRecord *FR = getFunctionInfo(F))
         if (FR->FunctionEffect == 0)
           return DoesNotAccessMemory;






More information about the llvm-commits mailing list