mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-25 17:20:48 +00:00
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:
@@ -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");
|
||||
}
|
||||
|
||||
|
@@ -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)
|
||||
|
@@ -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");
|
||||
}
|
||||
|
@@ -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() {
|
||||
|
@@ -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");
|
||||
|
@@ -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() {
|
||||
|
@@ -33,7 +33,7 @@
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
static RegisterAnalysis<LocalDataStructures>
|
||||
static RegisterPass<LocalDataStructures>
|
||||
X("datastructure", "Local Data Structure Analysis");
|
||||
|
||||
static cl::opt<bool>
|
||||
|
@@ -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");
|
||||
|
Reference in New Issue
Block a user