Skip to content

Commit 0601317

Browse files
committed
Drop key in DominatorTreeAnalysis
1 parent 3b5daef commit 0601317

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

llvm/include/llvm/IR/Dominators.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,6 @@ template <> struct GraphTraits<DominatorTree*>
277277

278278
/// Analysis pass which computes a \c DominatorTree.
279279
class DominatorTreeAnalysis : public AnalysisInfoMixin<DominatorTreeAnalysis> {
280-
friend AnalysisInfoMixin<DominatorTreeAnalysis>;
281-
static AnalysisKey Key;
282-
283280
public:
284281
/// Provide the result typedef for this analysis pass.
285282
using Result = DominatorTree;

llvm/include/llvm/IR/PassManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ template <typename DerivedT> struct PassInfoMixin {
8989
/// This provides some boilerplate for types that are analysis passes. It
9090
/// automatically mixes in \c PassInfoMixin.
9191
template <typename DerivedT>
92-
struct AnalysisInfoMixin : PassInfoMixin<DerivedT> {
92+
LLVM_ABI_EXPORT struct AnalysisInfoMixin : PassInfoMixin<DerivedT> {
9393
/// Returns an opaque, unique ID for this analysis type.
9494
///
9595
/// This ID is a pointer type that is guaranteed to be 8-byte aligned and thus

llvm/lib/IR/Dominators.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,6 @@ DominatorTree DominatorTreeAnalysis::run(Function &F,
375375
return DT;
376376
}
377377

378-
AnalysisKey DominatorTreeAnalysis::Key;
379-
380378
DominatorTreePrinterPass::DominatorTreePrinterPass(raw_ostream &OS) : OS(OS) {}
381379

382380
PreservedAnalyses DominatorTreePrinterPass::run(Function &F,

0 commit comments

Comments
 (0)