mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Don't add declarations as call graph roots.
Swift SVN r21554
This commit is contained in:
@@ -55,7 +55,8 @@ void CallGraph::addCallGraphNode(SILFunction *F, unsigned NodeOrdinal) {
|
|||||||
|
|
||||||
// TODO: Only add functions clearly visible from outside our
|
// TODO: Only add functions clearly visible from outside our
|
||||||
// compilation scope as roots.
|
// compilation scope as roots.
|
||||||
CallGraphRoots.push_back(Node);
|
if (F->isDefinition())
|
||||||
|
CallGraphRoots.push_back(Node);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CallGraph::addEdgesForApply(ApplyInst *AI, CallGraphNode *CallerNode) {
|
void CallGraph::addEdgesForApply(ApplyInst *AI, CallGraphNode *CallerNode) {
|
||||||
|
|||||||
Reference in New Issue
Block a user