- /// 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,
- std::vector<PointerAccessInfo> *Info) {
- assert(Vals.find(F) != Vals.end() && "Never seen value in AA before");
- return AliasAnalysis::getModRefBehavior(F, CS, Info);
+ bool pointsToConstantMemory(const Location &Loc, bool OrLocal) override {
+ assert(Vals.find(Loc.Ptr) != Vals.end() && "Never seen value in AA before");
+ return AliasAnalysis::pointsToConstantMemory(Loc, OrLocal);