Minor cleanups to follow the common convention for pass
authorDan Gohman <gohman@apple.com>
Fri, 20 Aug 2010 01:00:03 +0000 (01:00 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 20 Aug 2010 01:00:03 +0000 (01:00 +0000)
registration variables.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111598 91177308-0d34-0410-b5e6-96231b3b80d8

tools/opt/PrintSCC.cpp

index 067c2038f76a90bc57fba12617b34559545517da..ba58a43d3b6fee66261ca580beed260e4b3c91c4 100644 (file)
@@ -61,15 +61,15 @@ namespace {
       AU.addRequired<CallGraph>();
     }
   };
+}
 
-  char CFGSCC::ID = 0;
-  RegisterPass<CFGSCC>
-  Y("print-cfg-sccs", "Print SCCs of each function CFG");
+char CFGSCC::ID = 0;
+static 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 CallGraphSCC::ID = 0;
+static RegisterPass<CallGraphSCC>
+Z("print-callgraph-sccs", "Print SCCs of the Call Graph");
 
 bool CFGSCC::runOnFunction(Function &F) {
   unsigned sccNum = 0;