aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2020-12-17 00:15:04 +0000
committerRichard Sandiford <richard.sandiford@arm.com>2020-12-17 00:15:04 +0000
commitd6c9781e073c359552d361ad34eb07c6c9231573 (patch)
treeaae7e37be0fbd9e9508ade4e48d3ddd7368d60b1 /gcc
parent21335c48576d0968126add51adef9a4ce0dddf07 (diff)
downloadgcc-d6c9781e073c359552d361ad34eb07c6c9231573.zip
gcc-d6c9781e073c359552d361ad34eb07c6c9231573.tar.gz
gcc-d6c9781e073c359552d361ad34eb07c6c9231573.tar.bz2
Export print-rtl.c:print_insn_with_notes
Later patches want to use print_insn_with_notes (printing to a pretty_printer). This patch exports it from print-rtl.c. The non-notes version is already public. gcc/ * print-rtl.h (print_insn_with_notes): Declare. * print-rtl.c (print_insn_with_notes): Make non-static
Diffstat (limited to 'gcc')
-rw-r--r--gcc/print-rtl.c5
-rw-r--r--gcc/print-rtl.h1
2 files changed, 2 insertions, 4 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c
index d514b1c..c1d3c17 100644
--- a/gcc/print-rtl.c
+++ b/gcc/print-rtl.c
@@ -1260,9 +1260,6 @@ print_rtx_insn_vec (FILE *file, const vec<rtx_insn *> &vec)
It is also possible to obtain a string for a single pattern as a string
pointer, via str_pattern_slim, but this usage is discouraged. */
-/* For insns we print patterns, and for some patterns we print insns... */
-static void print_insn_with_notes (pretty_printer *, const rtx_insn *);
-
/* This recognizes rtx'en classified as expressions. These are always
represent some action on values or results of other expression, that
may be stored in objects representing values. */
@@ -2011,7 +2008,7 @@ print_insn (pretty_printer *pp, const rtx_insn *x, int verbose)
/* Pretty-print a slim dump of X (an insn) to PP, including any register
note attached to the instruction. */
-static void
+void
print_insn_with_notes (pretty_printer *pp, const rtx_insn *x)
{
pp_string (pp, print_rtx_head);
diff --git a/gcc/print-rtl.h b/gcc/print-rtl.h
index 09e5a51..cf801e8 100644
--- a/gcc/print-rtl.h
+++ b/gcc/print-rtl.h
@@ -84,6 +84,7 @@ extern void dump_rtl_slim (FILE *, const rtx_insn *, const rtx_insn *,
extern void print_value (pretty_printer *, const_rtx, int);
extern void print_pattern (pretty_printer *, const_rtx, int);
extern void print_insn (pretty_printer *pp, const rtx_insn *x, int verbose);
+extern void print_insn_with_notes (pretty_printer *, const rtx_insn *);
extern void rtl_dump_bb_for_graph (pretty_printer *, basic_block);
extern const char *str_pattern_slim (const_rtx);