mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Update call graph dumping to indicate functions that cannot be reached.
Swift SVN r26982
This commit is contained in:
@@ -341,8 +341,13 @@ void CallGraphNode::dump() {
|
||||
});
|
||||
|
||||
llvm::errs() << Ordinal;
|
||||
llvm::errs() << (!Edges.empty() && isCallerEdgesComplete() ?
|
||||
" (all callers known): " : ": ");
|
||||
if (isDead())
|
||||
llvm::errs() << " [dead]: ";
|
||||
else if (isCallerEdgesComplete())
|
||||
llvm::errs() << " (all callers known): ";
|
||||
else
|
||||
llvm::errs() << ": ";
|
||||
|
||||
llvm::errs() << getFunction()->getName() << "\n";
|
||||
if (Edges.empty())
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user