Skip to content

Commit c1e4519

Browse files
committed
Remove the use of CallGraphEditor in CallGraphLinkerEditor.
First step in removing the former.
1 parent 9c6b0e6 commit c1e4519

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/swift/SILAnalysis/CallGraph.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ class CallGraph {
346346
#endif
347347

348348
friend class CallGraphEditor;
349+
friend class CallGraphLinkerEditor;
349350

350351
CallGraph(SILModule *M, bool completeModule);
351352
~CallGraph();
@@ -598,7 +599,8 @@ class CallGraphLinkerEditor {
598599
CallGraph *CG;
599600

600601
void callback(SILFunction *F) {
601-
CallGraphEditor(CG).addEdgesForFunction(F);
602+
if (CG)
603+
CG->addEdges(F);
602604
}
603605

604606
public:

0 commit comments

Comments
 (0)