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 | 41925f87d3e7fc9eb2b583267b99012dcb2774a0 (patch) | |
tree | a059364d7e6fdbe2d1acb20ee660dd0ff3891ff4 /lib/Analysis/IPA/GlobalsModRef.cpp | |
parent | dbd4f1000e6abe73dec4e26b24f19bcc7fb78494 (diff) |
Actually overload the virtual method. This fixes
Regression/Analysis/GlobalsModRef/purecse.ll. Isn't this what the
-Woverload-whatever flag would warn about :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19018 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IPA/GlobalsModRef.cpp')
-rw-r--r-- | lib/Analysis/IPA/GlobalsModRef.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/IPA/GlobalsModRef.cpp b/lib/Analysis/IPA/GlobalsModRef.cpp index cde80eec78..4a97a8f037 100644 --- a/lib/Analysis/IPA/GlobalsModRef.cpp +++ b/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; |