Eliminate RegisterAnalysis. RegisterPass now does all that is necessary.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29921 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2006-08-27 22:30:17 +00:00
parent 2dd3d423aa
commit 5d8925c7c5
22 changed files with 52 additions and 59 deletions

View File

@@ -37,7 +37,7 @@ namespace {
UpdateGlobals("budatastructures-update-from-globals",
cl::desc("Update local graph from global graph when processing function"));
RegisterAnalysis<BUDataStructures>
RegisterPass<BUDataStructures>
X("budatastructure", "Bottom-up Data Structure Analysis");
}

View File

@@ -34,7 +34,7 @@ namespace {
Statistic<> CompleteInd("calltarget", "Number of complete indirect calls");
Statistic<> CompleteEmpty("calltarget", "Number of complete empty calls");
RegisterAnalysis<CallTargetFinder> X("calltarget", "Find Call Targets (uses DSA)");
RegisterPass<CallTargetFinder> X("calltarget","Find Call Targets (uses DSA)");
}
void CallTargetFinder::findIndTargets(Module &M)

View File

@@ -25,7 +25,7 @@
using namespace llvm;
namespace {
RegisterAnalysis<CompleteBUDataStructures>
RegisterPass<CompleteBUDataStructures>
X("cbudatastructure", "'Complete' Bottom-up Data Structure Analysis");
Statistic<> NumCBUInlines("cbudatastructures", "Number of graphs inlined");
}

View File

@@ -60,7 +60,7 @@ namespace {
void print(std::ostream &O, const Module* = 0) const { }
};
static RegisterAnalysis<DSGraphStats> Z("dsstats", "DS Graph Statistics");
static RegisterPass<DSGraphStats> Z("dsstats", "DS Graph Statistics");
}
FunctionPass *llvm::createDataStructureStatsPass() {

View File

@@ -30,7 +30,7 @@
using namespace llvm;
namespace {
RegisterAnalysis<EquivClassGraphs> X("eqdatastructure",
RegisterPass<EquivClassGraphs> X("eqdatastructure",
"Equivalence-class Bottom-up Data Structure Analysis");
Statistic<> NumEquivBUInlines("equivdatastructures",
"Number of graphs inlined");

View File

@@ -74,7 +74,7 @@ namespace {
void verify(const DSGraph &G);
};
RegisterAnalysis<DSGC> X("datastructure-gc", "DSA Graph Checking Pass");
RegisterPass<DSGC> X("datastructure-gc", "DSA Graph Checking Pass");
}
FunctionPass *llvm::createDataStructureGraphCheckerPass() {

View File

@@ -33,7 +33,7 @@
using namespace llvm;
static RegisterAnalysis<LocalDataStructures>
static RegisterPass<LocalDataStructures>
X("datastructure", "Local Data Structure Analysis");
static cl::opt<bool>

View File

@@ -32,7 +32,7 @@ using namespace llvm;
#endif
namespace {
RegisterAnalysis<TDDataStructures> // Register the pass
RegisterPass<TDDataStructures> // Register the pass
Y("tddatastructure", "Top-down Data Structure Analysis");
Statistic<> NumTDInlines("tddatastructures", "Number of graphs inlined");