Small refactoring of call graph code.

This is a first step towards building a better call graph.

Swift SVN r21152
This commit is contained in:
Mark Lacey
2014-08-12 18:20:21 +00:00
parent 4970157f0e
commit d5a619bbad
4 changed files with 22 additions and 29 deletions

View File

@@ -41,15 +41,6 @@ void CompleteFunctions::setComplete() {
IsModulePending = false;
}
/// \brief return a bottom-up function order.
const std::vector<SILFunction*> &CallGraphAnalysis::bottomUpCallGraphOrder() {
// If we haven't calculated the order before do it now.
if (!BottomUpFunctionOrder.size())
swift::bottomUpCallGraphOrder(M, BottomUpFunctionOrder);
return BottomUpFunctionOrder;
}
SILAnalysis *swift::createCallGraphAnalysis(SILModule *M) {
return new CallGraphAnalysis(M);
}