Skip to content

Commit d6630ed

Browse files
committed
Improve the comment within examples/show-callgraph.py
1 parent 6c63c68 commit d6630ed

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/show-callgraph.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222

2323
def on_pass_execution(p, fn):
2424
if p.name == '*free_lang_data':
25+
# The '*free_lang_data' pass is called once, rather than per-function,
26+
# and occurs immediately after "*build_cgraph_edges", which is the
27+
# pass that initially builds the callgraph
28+
#
29+
# So at this point we're likely to get a good view of the callgraph
30+
# before further optimization passes manipulate it:
2531
dot = callgraph_to_dot()
2632
invoke_dot(dot)
2733

0 commit comments

Comments
 (0)