Commit e94497fb by Richard Biener Committed by Jakub Jelinek

cgraph.h (symbol_table): Just declare debug method here.

	* cgraph.h (symbol_table): Just declare debug method here.
	* symtab.c (symbol_table::debug): Define.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>

From-SVN: r259685
parent 7ee1f872
2018-04-26 Richard Biener <rguenther@suse.de>
Jakub Jelinek <jakub@redhat.com>
* cgraph.h (symbol_table): Just declare debug method here.
* symtab.c (symbol_table::debug): Define.
2018-04-26 Eric Botcazou <ebotcazou@adacore.com> 2018-04-26 Eric Botcazou <ebotcazou@adacore.com>
* loop-invariant.c (may_assign_reg_p): Return false for frame pointer. * loop-invariant.c (may_assign_reg_p): Return false for frame pointer.
......
...@@ -2222,10 +2222,7 @@ public: ...@@ -2222,10 +2222,7 @@ public:
void dump (FILE *f); void dump (FILE *f);
/* Dump symbol table to stderr. */ /* Dump symbol table to stderr. */
inline DEBUG_FUNCTION void debug (void) void DEBUG_FUNCTION debug (void);
{
dump (stderr);
}
/* Return true if assembler names NAME1 and NAME2 leads to the same symbol /* Return true if assembler names NAME1 and NAME2 leads to the same symbol
name. */ name. */
......
...@@ -947,6 +947,12 @@ symbol_table::dump (FILE *f) ...@@ -947,6 +947,12 @@ symbol_table::dump (FILE *f)
node->dump (f); node->dump (f);
} }
DEBUG_FUNCTION void
symbol_table::debug (void)
{
dump (stderr);
}
/* Return the cgraph node that has ASMNAME for its DECL_ASSEMBLER_NAME. /* Return the cgraph node that has ASMNAME for its DECL_ASSEMBLER_NAME.
Return NULL if there's no such node. */ Return NULL if there's no such node. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment