mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user