diff options
author | Chris Lattner <sabre@nondot.org> | 2004-12-17 17:12:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-12-17 17:12:24 +0000 |
commit | a12b5df616a3ade21aa571b96d7a30145455cefb (patch) | |
tree | 93b02c9c4ac203d815d5f44e18e0eb9ec49a276e /llvm/lib/Analysis | |
parent | 493cc124155651939fa637839b8e431ebf093b5f (diff) | |
download | bcm5719-llvm-a12b5df616a3ade21aa571b96d7a30145455cefb.tar.gz bcm5719-llvm-a12b5df616a3ade21aa571b96d7a30145455cefb.zip |
Actually overload the virtual method. This fixes
Regression/Analysis/GlobalsModRef/purecse.ll. Isn't this what the
-Woverload-whatever flag would warn about :)
llvm-svn: 19018
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r-- | llvm/lib/Analysis/IPA/GlobalsModRef.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/IPA/GlobalsModRef.cpp b/llvm/lib/Analysis/IPA/GlobalsModRef.cpp index cde80eec787..4a97a8f0374 100644 --- a/llvm/lib/Analysis/IPA/GlobalsModRef.cpp +++ b/llvm/lib/Analysis/IPA/GlobalsModRef.cpp @@ -104,7 +104,8 @@ namespace { /// 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; |