Dump static chain for cgraph_node.
authorMartin Liska <mliska@suse.cz>
Mon, 8 Nov 2021 09:27:47 +0000 (10:27 +0100)
committerMartin Liska <mliska@suse.cz>
Mon, 8 Nov 2021 11:50:01 +0000 (12:50 +0100)
gcc/ChangeLog:

* cgraph.c (cgraph_node::dump): Dump static_chain_decl.

gcc/cgraph.c

index de07865..8299ee9 100644 (file)
@@ -2203,6 +2203,10 @@ cgraph_node::dump (FILE *f)
     fprintf (f, " %soperator_delete",
             DECL_IS_REPLACEABLE_OPERATOR (decl) ? "replaceable_" : "");
 
+  function *fn = DECL_STRUCT_FUNCTION (decl);
+  if (fn != NULL && fn->static_chain_decl)
+    fprintf (f, " static_chain_decl");
+
   fprintf (f, "\n");
 
   if (thunk)