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/CodeGen/MachineInstr.cpp | |
parent | c41404a09044d241774bf70afe9013dbde751f64 (diff) | |
download | llvm-ac80dc753228af5f1b415bc9fa9834aeba19122b.zip llvm-ac80dc753228af5f1b415bc9fa9834aeba19122b.tar.gz llvm-ac80dc753228af5f1b415bc9fa9834aeba19122b.tar.bz2 |
[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/CodeGen/MachineInstr.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index e671028..19ba5cf 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -1450,9 +1450,9 @@ bool MachineInstr::isInvariantLoad(AliasAnalysis *AA) const { if (const Value *V = (*I)->getValue()) { // If we have an AliasAnalysis, ask it whether the memory is constant. - if (AA && AA->pointsToConstantMemory( - AliasAnalysis::Location(V, (*I)->getSize(), - (*I)->getAAInfo()))) + if (AA && + AA->pointsToConstantMemory( + MemoryLocation(V, (*I)->getSize(), (*I)->getAAInfo()))) continue; } |