diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-08-27 22:30:17 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-08-27 22:30:17 +0000 |
| commit | 3c9b2420dfbbc9b4b623437e0209588176e08888 (patch) | |
| tree | 9acae1d344518122c2d6e8c55b604f3d0019dfc8 /llvm/tools | |
| parent | fbb46500cf21ff15c9b0ac18c7f69417bdf7571f (diff) | |
| download | bcm5719-llvm-3c9b2420dfbbc9b4b623437e0209588176e08888.tar.gz bcm5719-llvm-3c9b2420dfbbc9b4b623437e0209588176e08888.zip | |
Eliminate RegisterAnalysis. RegisterPass now does all that is necessary.
llvm-svn: 29921
Diffstat (limited to 'llvm/tools')
| -rw-r--r-- | llvm/tools/opt/AnalysisWrappers.cpp | 4 | ||||
| -rw-r--r-- | llvm/tools/opt/GraphPrinters.cpp | 4 | ||||
| -rw-r--r-- | llvm/tools/opt/PrintSCC.cpp | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/llvm/tools/opt/AnalysisWrappers.cpp b/llvm/tools/opt/AnalysisWrappers.cpp index b371d50ef33..5c815f2b029 100644 --- a/llvm/tools/opt/AnalysisWrappers.cpp +++ b/llvm/tools/opt/AnalysisWrappers.cpp @@ -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"); } diff --git a/llvm/tools/opt/GraphPrinters.cpp b/llvm/tools/opt/GraphPrinters.cpp index 8826cd2a777..8ae0a0340ce 100644 --- a/llvm/tools/opt/GraphPrinters.cpp +++ b/llvm/tools/opt/GraphPrinters.cpp @@ -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"); } diff --git a/llvm/tools/opt/PrintSCC.cpp b/llvm/tools/opt/PrintSCC.cpp index c0adf5ca034..904442d11f8 100644 --- a/llvm/tools/opt/PrintSCC.cpp +++ b/llvm/tools/opt/PrintSCC.cpp @@ -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"); } |

