[llvm] 796c805 - ProvenanceAnalysis.h - remove unnecessary AliasAnalysis.h include. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 15 05:34:50 PDT 2020
Author: Simon Pilgrim
Date: 2020-09-15T13:34:35+01:00
New Revision: 796c80526929e672efbdb2dfae1add1cc66c46b8
URL: https://github.com/llvm/llvm-project/commit/796c80526929e672efbdb2dfae1add1cc66c46b8
DIFF: https://github.com/llvm/llvm-project/commit/796c80526929e672efbdb2dfae1add1cc66c46b8.diff
LOG: ProvenanceAnalysis.h - remove unnecessary AliasAnalysis.h include. NFCI.
Forward declare AAResults instead of the (old) AliasAnalysis type.
Added:
Modified:
llvm/lib/Transforms/ObjCARC/ProvenanceAnalysis.h
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/ObjCARC/ProvenanceAnalysis.h b/llvm/lib/Transforms/ObjCARC/ProvenanceAnalysis.h
index 8fd842fd42d6..9e18052641a1 100644
--- a/llvm/lib/Transforms/ObjCARC/ProvenanceAnalysis.h
+++ b/llvm/lib/Transforms/ObjCARC/ProvenanceAnalysis.h
@@ -26,12 +26,12 @@
#define LLVM_LIB_TRANSFORMS_OBJCARC_PROVENANCEANALYSIS_H
#include "llvm/ADT/DenseMap.h"
-#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/IR/ValueHandle.h"
#include <utility>
namespace llvm {
+class AAResults;
class DataLayout;
class PHINode;
class SelectInst;
@@ -49,7 +49,7 @@ namespace objcarc {
/// not two pointers have the same provenance source and thus could
/// potentially be related.
class ProvenanceAnalysis {
- AliasAnalysis *AA;
+ AAResults *AA;
using ValuePairTy = std::pair<const Value *, const Value *>;
using CachedResultsTy = DenseMap<ValuePairTy, bool>;
@@ -67,9 +67,9 @@ class ProvenanceAnalysis {
ProvenanceAnalysis(const ProvenanceAnalysis &) = delete;
ProvenanceAnalysis &operator=(const ProvenanceAnalysis &) = delete;
- void setAA(AliasAnalysis *aa) { AA = aa; }
+ void setAA(AAResults *aa) { AA = aa; }
- AliasAnalysis *getAA() const { return AA; }
+ AAResults *getAA() const { return AA; }
bool related(const Value *A, const Value *B, const DataLayout &DL);
More information about the llvm-commits
mailing list