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/config/tc-tic54x.c | |
parent | 43fe575c32f8d63e397280aa65e5fe39d587112e (diff) | |
download | fsf-binutils-gdb-7e6d6b62d8d2036a86a36b7f03862bb23506bf5c.zip fsf-binutils-gdb-7e6d6b62d8d2036a86a36b7f03862bb23506bf5c.tar.gz fsf-binutils-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/config/tc-tic54x.c')
-rw-r--r-- | gas/config/tc-tic54x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-tic54x.c b/gas/config/tc-tic54x.c index dc8cc1d..ebefcf1 100644 --- a/gas/config/tc-tic54x.c +++ b/gas/config/tc-tic54x.c @@ -2034,7 +2034,7 @@ tic54x_loop (int count) if (!is_end_of_line[(unsigned char) *input_line_pointer]) count = get_absolute_expression (); - do_repeat ((size_t) count, "LOOP", "ENDLOOP"); + do_repeat ((size_t) count, "LOOP", "ENDLOOP", NULL); } /* Normally, endloop gets eaten by the preceding loop. */ |