mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
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:
@ -61,16 +61,16 @@ namespace {
|
|||||||
AU.addRequired<CallGraph>();
|
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) {
|
bool CFGSCC::runOnFunction(Function &F) {
|
||||||
unsigned sccNum = 0;
|
unsigned sccNum = 0;
|
||||||
outs() << "SCCs for Function " << F.getName() << " in PostOrder:";
|
outs() << "SCCs for Function " << F.getName() << " in PostOrder:";
|
||||||
|
Reference in New Issue
Block a user