Move the closure specializer over to using the new call graph.

Swift SVN r21568
This commit is contained in:
Mark Lacey
2014-08-29 07:22:46 +00:00
parent 9a0df28082
commit 9aa7ace51a

View File

@@ -364,7 +364,7 @@ public:
bool Changed = false;
// Specialize going bottom-up in the call graph.
for (auto *F : CGA->bottomUpCallGraphOrder()) {
for (auto *F : CGA->getCallGraph().getBottomUpFunctionOrder()) {
// If F is empty, attempt to link it. Skip it if we fail to do so.
if (F->empty() &&
!getModule()->linkFunction(F, SILModule::LinkingMode::LinkAll))