diff options
author | Jan Beulich <jbeulich@suse.com> | 2022-05-18 09:37:34 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2022-05-18 09:37:34 +0200 |
commit | 7e6d6b62d8d2036a86a36b7f03862bb23506bf5c (patch) | |
tree | c262b70bb3c84231d8d2c33bdd8d9dede6c7f864 /gas/read.h | |
parent | 43fe575c32f8d63e397280aa65e5fe39d587112e (diff) | |
download | gdb-7e6d6b62d8d2036a86a36b7f03862bb23506bf5c.zip gdb-7e6d6b62d8d2036a86a36b7f03862bb23506bf5c.tar.gz gdb-7e6d6b62d8d2036a86a36b7f03862bb23506bf5c.tar.bz2 |
gas: fold do_repeat{,_with_expander}()
do_repeat_with_expander() already deals with the "no expander" case
quite fine, so there's really little point having two functions. What it
lacks compared with do_repeat() is a call to sb_build(), which can
simply be moved (and the then redundant sb_new() be avoided). Along with
this moving also flip if the main if()'s condition such that the "no
expander" case is handled first.
Diffstat (limited to 'gas/read.h')
-rw-r--r-- | gas/read.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -148,8 +148,7 @@ extern void stabs_generate_asm_file (void); extern void stabs_generate_asm_lineno (void); extern void stabs_generate_asm_func (const char *, const char *); extern void stabs_generate_asm_endfunc (const char *, const char *); -extern void do_repeat (size_t, const char *, const char *); -extern void do_repeat_with_expander (size_t, const char *, const char *, const char *); +extern void do_repeat (size_t, const char *, const char *, const char *); extern void end_repeat (int); extern void do_parse_cons_expression (expressionS *, int); |