diff options
author | David Malcolm <dmalcolm@redhat.com> | 2016-12-07 18:16:32 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2016-12-07 18:16:32 +0000 |
commit | 9c4e96eb1e305a9f35e4dbafb0a1fe29ef226265 (patch) | |
tree | f630779522d438dada81b844779c84d2ca6d302d /gcc/read-md.h | |
parent | 8e1d640fcdf694fe1d83818b123b550e0da96705 (diff) | |
download | gcc-9c4e96eb1e305a9f35e4dbafb0a1fe29ef226265.zip gcc-9c4e96eb1e305a9f35e4dbafb0a1fe29ef226265.tar.gz gcc-9c4e96eb1e305a9f35e4dbafb0a1fe29ef226265.tar.bz2 |
Add some functions for use by the RTL frontend.
gcc/ChangeLog:
* read-md.c (rtx_reader::require_char): New method.
(require_char_ws): Convert from function to...
(rtx_reader::require_char_ws): ...method.
(rtx_reader::require_word_ws): New method.
* read-md.h (rtx_reader::require_char): New method decl.
(require_char_ws): Remove global decl in favor of...
(rtx_reader::require_char_ws): ...new method decl.
(rtx_reader::require_word_ws): New method decl.
(rtx_reader::peek_char): New method decl.
From-SVN: r243376
Diffstat (limited to 'gcc/read-md.h')
-rw-r--r-- | gcc/read-md.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/read-md.h b/gcc/read-md.h index 996b514..06b89b4 100644 --- a/gcc/read-md.h +++ b/gcc/read-md.h @@ -116,6 +116,10 @@ class rtx_reader char *read_braced_string (); char *read_string (int star_if_braced); void read_skip_construct (int depth, file_location loc); + void require_char (char expected); + void require_char_ws (char expected); + void require_word_ws (const char *expected); + int peek_char (void); void set_md_ptr_loc (const void *ptr, const char *filename, int lineno); const struct ptr_loc *get_md_ptr_loc (const void *ptr); @@ -269,7 +273,6 @@ extern void fatal_with_file_and_line (const char *, ...) ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN; extern void fatal_expected_char (int, int) ATTRIBUTE_NORETURN; extern int read_skip_spaces (void); -extern void require_char_ws (char expected); extern int n_comma_elts (const char *); extern const char *scan_comma_elt (const char **); extern void upcase_string (char *); |