summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/IR/PassManagerTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/IR/PassManagerTest.cpp')
-rw-r--r--llvm/unittests/IR/PassManagerTest.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/unittests/IR/PassManagerTest.cpp b/llvm/unittests/IR/PassManagerTest.cpp
index 857b5283c41..c00748cadb9 100644
--- a/llvm/unittests/IR/PassManagerTest.cpp
+++ b/llvm/unittests/IR/PassManagerTest.cpp
@@ -40,9 +40,14 @@ public:
}
private:
+ friend AnalysisBase<TestFunctionAnalysis>;
+ static char PassID;
+
int &Runs;
};
+char TestFunctionAnalysis::PassID;
+
class TestModuleAnalysis : public AnalysisBase<TestModuleAnalysis> {
public:
struct Result {
@@ -61,9 +66,14 @@ public:
}
private:
+ friend AnalysisBase<TestModuleAnalysis>;
+ static char PassID;
+
int &Runs;
};
+char TestModuleAnalysis::PassID;
+
struct TestModulePass : PassBase<TestModulePass> {
TestModulePass(int &RunCount) : RunCount(RunCount) {}
OpenPOWER on IntegriCloud