diff options
author | Tom Tromey <tom@tromey.com> | 2017-08-13 10:40:35 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-09-06 15:49:31 -0600 |
commit | fef704bfec3fdec29b08fca2bd0a5226a04c3113 (patch) | |
tree | 2caf8ec5baf77cc9caadc6c11765ef38821b82db /gdb/go-exp.y | |
parent | 5613c5857a020ca5189a73df7b58a234d0311bfb (diff) | |
download | gdb-fef704bfec3fdec29b08fca2bd0a5226a04c3113.zip gdb-fef704bfec3fdec29b08fca2bd0a5226a04c3113.tar.gz gdb-fef704bfec3fdec29b08fca2bd0a5226a04c3113.tar.bz2 |
Remove last cleanups from go-exp.y
This removes the last remaining cleanups from go-exp.y.
2017-09-05 Tom Tromey <tom@tromey.com>
* go-exp.y (go_parse): Don't create a cleanup.
Diffstat (limited to 'gdb/go-exp.y')
-rw-r--r-- | gdb/go-exp.y | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/gdb/go-exp.y b/gdb/go-exp.y index 098e734..629093a 100644 --- a/gdb/go-exp.y +++ b/gdb/go-exp.y @@ -1560,18 +1560,11 @@ yylex (void) int go_parse (struct parser_state *par_state) { - int result; - struct cleanup *back_to; - /* Setting up the parser state. */ scoped_restore pstate_restore = make_scoped_restore (&pstate); gdb_assert (par_state != NULL); pstate = par_state; - /* Note that parsing (within yyparse) freely installs cleanups - assuming they'll be run here (below). */ - back_to = make_cleanup (null_cleanup, NULL); - scoped_restore restore_yydebug = make_scoped_restore (&yydebug, parser_debug); @@ -1583,9 +1576,7 @@ go_parse (struct parser_state *par_state) popping = 0; name_obstack.clear (); - result = yyparse (); - do_cleanups (back_to); - return result; + return yyparse (); } void |