aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2023-06-05 14:51:02 +0200
committerUros Bizjak <ubizjak@gmail.com>2023-06-05 16:32:41 +0200
commit8e1e1fc4fcb0d7d93222a707f9b83ae400c5a3fa (patch)
tree5d913af416fb1cd9919e2949234fdb930282fbe1 /gcc/rtl.h
parentd015c658a01961e6e52d902ef405cfe49d1be7d0 (diff)
downloadgcc-8e1e1fc4fcb0d7d93222a707f9b83ae400c5a3fa.zip
gcc-8e1e1fc4fcb0d7d93222a707f9b83ae400c5a3fa.tar.gz
gcc-8e1e1fc4fcb0d7d93222a707f9b83ae400c5a3fa.tar.bz2
print-rtl: Change return type of two print functions from int to void
Also change one internal variable to bool. gcc/ChangeLog: * rtl.h (print_rtl_single): Change return type from int to void. (print_rtl_single_with_indent): Ditto. * print-rtl.h (class rtx_writer): Ditto. Change m_sawclose to bool. * print-rtl.cc (rtx_writer::rtx_writer): Update for m_sawclose change. (rtx_writer::print_rtx_operand_code_0): Ditto. (rtx_writer::print_rtx_operand_codes_E_and_V): Ditto. (rtx_writer::print_rtx_operand_code_i): Ditto. (rtx_writer::print_rtx_operand_code_u): Ditto. (rtx_writer::print_rtx_operand): Ditto. (rtx_writer::print_rtx): Ditto. (rtx_writer::finish_directive): Ditto. (print_rtl_single): Change return type from int to void and adjust function body accordingly. (rtx_writer::print_rtl_single_with_indent): Ditto.
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r--gcc/rtl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h
index 3f0af78..4c993e8 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -4241,8 +4241,8 @@ extern const rtx_insn *debug_rtx_find (const rtx_insn *, int);
extern void print_mem_expr (FILE *, const_tree);
extern void print_rtl (FILE *, const_rtx);
extern void print_simple_rtl (FILE *, const_rtx);
-extern int print_rtl_single (FILE *, const_rtx);
-extern int print_rtl_single_with_indent (FILE *, const_rtx, int);
+extern void print_rtl_single (FILE *, const_rtx);
+extern void print_rtl_single_with_indent (FILE *, const_rtx, int);
extern void print_inline_rtx (FILE *, const_rtx, int);
/* In stmt.cc */