Minor cleanups to follow the common convention for pass

registration variables.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111598 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman
2010-08-20 01:00:03 +00:00
parent a2a3bbc668
commit cfbe401e8b

View File

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