comparison gcc/cgraphbuild.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1 /* Callgraph construction. 1 /* Callgraph construction.
2 Copyright (C) 2003-2018 Free Software Foundation, Inc. 2 Copyright (C) 2003-2020 Free Software Foundation, Inc.
3 Contributed by Jan Hubicka 3 Contributed by Jan Hubicka
4 4
5 This file is part of GCC. 5 This file is part of GCC.
6 6
7 GCC is free software; you can redistribute it and/or modify it under 7 GCC is free software; you can redistribute it and/or modify it under
34 34
35 /* Context of record_reference. */ 35 /* Context of record_reference. */
36 struct record_reference_ctx 36 struct record_reference_ctx
37 { 37 {
38 bool only_vars; 38 bool only_vars;
39 class varpool_node *varpool_node; 39 struct varpool_node *varpool_node;
40 }; 40 };
41 41
42 /* Walk tree and record all calls and references to functions/variables. 42 /* Walk tree and record all calls and references to functions/variables.
43 Called via walk_tree: TP is pointer to tree to be examined. 43 Called via walk_tree: TP is pointer to tree to be examined.
44 When DATA is non-null, record references to callgraph. 44 When DATA is non-null, record references to callgraph.
426 } 426 }
427 for (gsi = gsi_start_phis (bb); !gsi_end_p (gsi); gsi_next (&gsi)) 427 for (gsi = gsi_start_phis (bb); !gsi_end_p (gsi); gsi_next (&gsi))
428 node->record_stmt_references (gsi_stmt (gsi)); 428 node->record_stmt_references (gsi_stmt (gsi));
429 } 429 }
430 record_eh_tables (node, cfun); 430 record_eh_tables (node, cfun);
431 gcc_assert (!node->global.inlined_to); 431 gcc_assert (!node->inlined_to);
432 return 0; 432 return 0;
433 } 433 }
434 434
435 /* Rebuild cgraph references for current function node. This needs to be run 435 /* Rebuild cgraph references for current function node. This needs to be run
436 after passes that don't update the cgraph. */ 436 after passes that don't update the cgraph. */