diff --git a/tools/opt/PrintSCC.cpp b/tools/opt/PrintSCC.cpp index 067c2038f76..ba58a43d3b6 100644 --- a/tools/opt/PrintSCC.cpp +++ b/tools/opt/PrintSCC.cpp @@ -61,16 +61,16 @@ namespace { AU.addRequired(); } }; - - char CFGSCC::ID = 0; - RegisterPass - Y("print-cfg-sccs", "Print SCCs of each function CFG"); - - char CallGraphSCC::ID = 0; - RegisterPass - Z("print-callgraph-sccs", "Print SCCs of the Call Graph"); } +char CFGSCC::ID = 0; +static RegisterPass +Y("print-cfg-sccs", "Print SCCs of each function CFG"); + +char CallGraphSCC::ID = 0; +static RegisterPass +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:";