[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/Steensgaard.cpp

Reid Spencer reid at x10sys.com
Sun Aug 27 18:03:12 PDT 2006



Changes in directory llvm/lib/Analysis/DataStructure:

Steensgaard.cpp updated: 1.64 -> 1.65
---
Log message:

For PR387: http://llvm.org/PR387 :
Close out this long standing bug by removing the remaining overloaded
virtual functions in LLVM. The -Woverloaded-virtual option is now turned on.


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

 Steensgaard.cpp |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletion(-)


Index: llvm/lib/Analysis/DataStructure/Steensgaard.cpp
diff -u llvm/lib/Analysis/DataStructure/Steensgaard.cpp:1.64 llvm/lib/Analysis/DataStructure/Steensgaard.cpp:1.65
--- llvm/lib/Analysis/DataStructure/Steensgaard.cpp:1.64	Sun Aug 27 19:42:29 2006
+++ llvm/lib/Analysis/DataStructure/Steensgaard.cpp	Sun Aug 27 20:02:49 2006
@@ -65,7 +65,8 @@
     AliasResult alias(const Value *V1, unsigned V1Size,
                       const Value *V2, unsigned V2Size);
 
-    ModRefResult getModRefInfo(CallSite CS, Value *P, unsigned Size);
+    virtual ModRefResult getModRefInfo(CallSite CS, Value *P, unsigned Size);
+    virtual ModRefResult getModRefInfo(CallSite CS1, CallSite CS2);
 
   private:
     void ResolveFunctionCall(Function *F, const DSCallSite &Call,
@@ -266,3 +267,9 @@
 
   return (ModRefResult)(Result & AliasAnalysis::getModRefInfo(CS, P, Size));
 }
+
+AliasAnalysis::ModRefResult 
+Steens::getModRefInfo(CallSite CS1, CallSite CS2)
+{
+  return AliasAnalysis::getModRefInfo(CS1,CS2);
+}






More information about the llvm-commits mailing list