[PM/AA] Split the location computation out of getArgLocation so the
[oota-llvm.git] / lib / Analysis / NoAliasAnalysis.cpp
index 203e1daf7a09e9a5dfbd779387dee7169890ded6..9a5430e0bc0fd4aa76f94b5373eb5da537bd2bb9 100644 (file)
@@ -55,12 +55,9 @@ namespace {
     bool pointsToConstantMemory(const Location &Loc, bool OrLocal) override {
       return false;
     }
-    Location getArgLocation(ImmutableCallSite CS, unsigned ArgIdx,
-                            ModRefResult &Mask) override {
-      Mask = ModRef;
-      AAMDNodes AATags;
-      CS->getAAMetadata(AATags);
-      return Location(CS.getArgument(ArgIdx), UnknownSize, AATags);
+    ModRefResult getArgModRefInfo(ImmutableCallSite CS,
+                                  unsigned ArgIdx) override {
+      return ModRef;
     }
 
     ModRefResult getModRefInfo(ImmutableCallSite CS,