summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/CGSCCPassManager.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2016-02-26 11:44:45 +0000
committerChandler Carruth <chandlerc@gmail.com>2016-02-26 11:44:45 +0000
commit3a6343555180817fe1f533a60e66b0e4db465e46 (patch)
treeb5c40db2a6e046ae4d71a83a06a4f591233ba90f /llvm/lib/Analysis/CGSCCPassManager.cpp
parent6456376fe94dcf4df5f2b946c1806fe579f9e414 (diff)
downloadbcm5719-llvm-3a6343555180817fe1f533a60e66b0e4db465e46.tar.gz
bcm5719-llvm-3a6343555180817fe1f533a60e66b0e4db465e46.zip
[PM] Introduce CRTP mixin base classes to help define passes and
analyses in the new pass manager. These just handle really basic stuff: turning a type name into a string statically that is nice to print in logs, and getting a static unique ID for each analysis. Sadly, the format of passes in anonymous namespaces makes using their names in tests really annoying so I've customized the names of the no-op passes to keep tests sane to read. This is the first of a few simplifying refactorings for the new pass manager that should reduce boilerplate and confusion. llvm-svn: 262004
Diffstat (limited to 'llvm/lib/Analysis/CGSCCPassManager.cpp')
-rw-r--r--llvm/lib/Analysis/CGSCCPassManager.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/Analysis/CGSCCPassManager.cpp b/llvm/lib/Analysis/CGSCCPassManager.cpp
index efffc8e4eba..69c37f57528 100644
--- a/llvm/lib/Analysis/CGSCCPassManager.cpp
+++ b/llvm/lib/Analysis/CGSCCPassManager.cpp
@@ -13,8 +13,6 @@
using namespace llvm;
-char CGSCCAnalysisManagerModuleProxy::PassID;
-
CGSCCAnalysisManagerModuleProxy::Result
CGSCCAnalysisManagerModuleProxy::run(Module &M) {
assert(CGAM->empty() && "CGSCC analyses ran prior to the module proxy!");
@@ -44,10 +42,6 @@ bool CGSCCAnalysisManagerModuleProxy::Result::invalidate(
return false;
}
-char ModuleAnalysisManagerCGSCCProxy::PassID;
-
-char FunctionAnalysisManagerCGSCCProxy::PassID;
-
FunctionAnalysisManagerCGSCCProxy::Result
FunctionAnalysisManagerCGSCCProxy::run(LazyCallGraph::SCC &C) {
return Result(*FAM);
@@ -75,5 +69,3 @@ bool FunctionAnalysisManagerCGSCCProxy::Result::invalidate(
// Return false to indicate that this result is still a valid proxy.
return false;
}
-
-char CGSCCAnalysisManagerFunctionProxy::PassID;
OpenPOWER on IntegriCloud