[llvm-commits] [llvm] r111598 - /llvm/trunk/tools/opt/PrintSCC.cpp

Dan Gohman gohman at apple.com
Thu Aug 19 18:00:03 PDT 2010


Author: djg
Date: Thu Aug 19 20:00:03 2010
New Revision: 111598

URL: http://llvm.org/viewvc/llvm-project?rev=111598&view=rev
Log:
Minor cleanups to follow the common convention for pass
registration variables.

Modified:
    llvm/trunk/tools/opt/PrintSCC.cpp

Modified: llvm/trunk/tools/opt/PrintSCC.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/opt/PrintSCC.cpp?rev=111598&r1=111597&r2=111598&view=diff
==============================================================================
--- llvm/trunk/tools/opt/PrintSCC.cpp (original)
+++ llvm/trunk/tools/opt/PrintSCC.cpp Thu Aug 19 20:00:03 2010
@@ -61,16 +61,16 @@
       AU.addRequired<CallGraph>();
     }
   };
-
-  char CFGSCC::ID = 0;
-  RegisterPass<CFGSCC>
-  Y("print-cfg-sccs", "Print SCCs of each function CFG");
-
-  char CallGraphSCC::ID = 0;
-  RegisterPass<CallGraphSCC>
-  Z("print-callgraph-sccs", "Print SCCs of the Call Graph");
 }
 
+char CFGSCC::ID = 0;
+static RegisterPass<CFGSCC>
+Y("print-cfg-sccs", "Print SCCs of each function CFG");
+
+char CallGraphSCC::ID = 0;
+static RegisterPass<CallGraphSCC>
+Z("print-callgraph-sccs", "Print SCCs of the Call Graph");
+
 bool CFGSCC::runOnFunction(Function &F) {
   unsigned sccNum = 0;
   outs() << "SCCs for Function " << F.getName() << " in PostOrder:";





More information about the llvm-commits mailing list