[llvm-commits] CVS: llvm/lib/Analysis/IPA/Andersens.cpp
Reid Spencer
reid at x10sys.com
Sun Aug 27 18:03:12 PDT 2006
Changes in directory llvm/lib/Analysis/IPA:
Andersens.cpp updated: 1.32 -> 1.33
---
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: (+7 -1)
Andersens.cpp | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletion(-)
Index: llvm/lib/Analysis/IPA/Andersens.cpp
diff -u llvm/lib/Analysis/IPA/Andersens.cpp:1.32 llvm/lib/Analysis/IPA/Andersens.cpp:1.33
--- llvm/lib/Analysis/IPA/Andersens.cpp:1.32 Sun Aug 27 19:42:29 2006
+++ llvm/lib/Analysis/IPA/Andersens.cpp Sun Aug 27 20:02:49 2006
@@ -236,7 +236,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);
void getMustAliases(Value *P, std::vector<Value*> &RetVals);
bool pointsToConstantMemory(const Value *P);
@@ -387,6 +388,11 @@
return AliasAnalysis::getModRefInfo(CS, P, Size);
}
+AliasAnalysis::ModRefResult
+Andersens::getModRefInfo(CallSite CS1, CallSite CS2) {
+ return AliasAnalysis::getModRefInfo(CS1,CS2);
+}
+
/// getMustAlias - We can provide must alias information if we know that a
/// pointer can only point to a specific function or the null pointer.
/// Unfortunately we cannot determine must-alias information for global
More information about the llvm-commits
mailing list