diff options
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r-- | gcc/cgraph.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c index ab45f04..88cf8ac 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -214,6 +214,19 @@ cgraph_node (tree decl) return node; } +/* Insert already constructed node into hashtable. */ + +void +cgraph_insert_node_to_hashtable (struct cgraph_node *node) +{ + struct cgraph_node **slot; + + slot = (struct cgraph_node **) htab_find_slot (cgraph_hash, node, INSERT); + + gcc_assert (!*slot); + *slot = node; +} + /* Compare ASMNAME with the DECL_ASSEMBLER_NAME of DECL. */ static bool |