diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2015-06-17 07:18:54 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2015-06-17 07:18:54 +0000 |
| commit | ac80dc753228af5f1b415bc9fa9834aeba19122b (patch) | |
| tree | 5844990db3db3823a6a80089477dfa3b9f52dea2 /llvm/lib/Analysis/NoAliasAnalysis.cpp | |
| parent | c41404a09044d241774bf70afe9013dbde751f64 (diff) | |
| download | bcm5719-llvm-ac80dc753228af5f1b415bc9fa9834aeba19122b.tar.gz bcm5719-llvm-ac80dc753228af5f1b415bc9fa9834aeba19122b.zip | |
[PM/AA] Remove the Location typedef from the AliasAnalysis class now
that it is its own entity in the form of MemoryLocation, and update all
the callers.
This is an entirely mechanical change. References to "Location" within
AA subclases become "MemoryLocation", and elsewhere
"AliasAnalysis::Location" becomes "MemoryLocation". Hope that helps
out-of-tree folks update.
llvm-svn: 239885
Diffstat (limited to 'llvm/lib/Analysis/NoAliasAnalysis.cpp')
| -rw-r--r-- | llvm/lib/Analysis/NoAliasAnalysis.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/NoAliasAnalysis.cpp b/llvm/lib/Analysis/NoAliasAnalysis.cpp index 9a5430e0bc0..7617622b9ab 100644 --- a/llvm/lib/Analysis/NoAliasAnalysis.cpp +++ b/llvm/lib/Analysis/NoAliasAnalysis.cpp @@ -41,7 +41,8 @@ namespace { return true; } - AliasResult alias(const Location &LocA, const Location &LocB) override { + AliasResult alias(const MemoryLocation &LocA, + const MemoryLocation &LocB) override { return MayAlias; } @@ -52,7 +53,8 @@ namespace { return UnknownModRefBehavior; } - bool pointsToConstantMemory(const Location &Loc, bool OrLocal) override { + bool pointsToConstantMemory(const MemoryLocation &Loc, + bool OrLocal) override { return false; } ModRefResult getArgModRefInfo(ImmutableCallSite CS, @@ -61,7 +63,7 @@ namespace { } ModRefResult getModRefInfo(ImmutableCallSite CS, - const Location &Loc) override { + const MemoryLocation &Loc) override { return ModRef; } ModRefResult getModRefInfo(ImmutableCallSite CS1, |

