[llvm-commits] CVS: llvm/tools/opt/AnalysisWrappers.cpp GraphPrinters.cpp PrintSCC.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Aug 27 15:30:41 PDT 2006



Changes in directory llvm/tools/opt:

AnalysisWrappers.cpp updated: 1.18 -> 1.19
GraphPrinters.cpp updated: 1.11 -> 1.12
PrintSCC.cpp updated: 1.14 -> 1.15
---
Log message:

Eliminate RegisterAnalysis.  RegisterPass now does all that is necessary.


---
Diffs of the changes:  (+6 -6)

 AnalysisWrappers.cpp |    4 ++--
 GraphPrinters.cpp    |    4 ++--
 PrintSCC.cpp         |    4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)


Index: llvm/tools/opt/AnalysisWrappers.cpp
diff -u llvm/tools/opt/AnalysisWrappers.cpp:1.18 llvm/tools/opt/AnalysisWrappers.cpp:1.19
--- llvm/tools/opt/AnalysisWrappers.cpp:1.18	Tue Apr 18 18:45:19 2006
+++ llvm/tools/opt/AnalysisWrappers.cpp	Sun Aug 27 17:30:17 2006
@@ -61,7 +61,7 @@
     }
   };
 
-  RegisterAnalysis<ExternalFunctionsPassedConstants>
+  RegisterPass<ExternalFunctionsPassedConstants>
   P1("externalfnconstants", "Print external fn callsites passed constants");
   
   struct CallGraphPrinter : public ModulePass {
@@ -76,6 +76,6 @@
     }
   };
   
-  RegisterAnalysis<CallGraphPrinter>
+  RegisterPass<CallGraphPrinter>
     P2("callgraph", "Print a call graph");
 }


Index: llvm/tools/opt/GraphPrinters.cpp
diff -u llvm/tools/opt/GraphPrinters.cpp:1.11 llvm/tools/opt/GraphPrinters.cpp:1.12
--- llvm/tools/opt/GraphPrinters.cpp:1.11	Wed May 24 12:04:04 2006
+++ llvm/tools/opt/GraphPrinters.cpp	Sun Aug 27 17:30:17 2006
@@ -72,6 +72,6 @@
     }
   };
 
-  RegisterAnalysis<CallGraphPrinter> P2("print-callgraph",
-                                        "Print Call Graph to 'dot' file");
+  RegisterPass<CallGraphPrinter> P2("print-callgraph",
+                                    "Print Call Graph to 'dot' file");
 }


Index: llvm/tools/opt/PrintSCC.cpp
diff -u llvm/tools/opt/PrintSCC.cpp:1.14 llvm/tools/opt/PrintSCC.cpp:1.15
--- llvm/tools/opt/PrintSCC.cpp:1.14	Thu Apr 21 16:08:44 2005
+++ llvm/tools/opt/PrintSCC.cpp	Sun Aug 27 17:30:17 2006
@@ -57,10 +57,10 @@
     }
   };
 
-  RegisterAnalysis<CFGSCC>
+  RegisterPass<CFGSCC>
   Y("cfgscc", "Print SCCs of each function CFG");
 
-  RegisterAnalysis<CallGraphSCC>
+  RegisterPass<CallGraphSCC>
   Z("callscc", "Print SCCs of the Call Graph");
 }
 






More information about the llvm-commits mailing list