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

@@ -61,7 +61,7 @@ namespace {
}
};
RegisterAnalysis<ExternalFunctionsPassedConstants>
RegisterPass<ExternalFunctionsPassedConstants>
P1("externalfnconstants", "Print external fn callsites passed constants");
struct CallGraphPrinter : public ModulePass {
@@ -76,6 +76,6 @@ namespace {
}
};
RegisterAnalysis<CallGraphPrinter>
RegisterPass<CallGraphPrinter>
P2("callgraph", "Print a call graph");
}

View File

@@ -72,6 +72,6 @@ namespace {
}
};
RegisterAnalysis<CallGraphPrinter> P2("print-callgraph",
"Print Call Graph to 'dot' file");
RegisterPass<CallGraphPrinter> P2("print-callgraph",
"Print Call Graph to 'dot' file");
}

View File

@@ -57,10 +57,10 @@ namespace {
}
};
RegisterAnalysis<CFGSCC>
RegisterPass<CFGSCC>
Y("cfgscc", "Print SCCs of each function CFG");
RegisterAnalysis<CallGraphSCC>
RegisterPass<CallGraphSCC>
Z("callscc", "Print SCCs of the Call Graph");
}