Update the generic specializer to maintain the call graph.

Swift SVN r27024
This commit is contained in:
Mark Lacey
2015-04-05 19:27:40 +00:00
parent 56de5fb95e
commit fea3321f59
12 changed files with 166 additions and 78 deletions

View File

@@ -156,6 +156,13 @@ bool CallGraph::tryGetCalleeSet(SILValue Callee,
return false;
auto *CalleeNode = getCallGraphNode(CalleeFn);
// FIXME: Consider whether we should create nodes for these
// initially.
if (!CalleeNode) {
addCallGraphNode(CalleeFn);
CalleeNode = getCallGraphNode(CalleeFn);
}
assert(CalleeNode &&
"Expected to have a call graph node for all functions!");