diff options
author | Jason Merrill <jason@redhat.com> | 2019-07-16 04:57:03 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2019-07-16 04:57:03 -0400 |
commit | 6eaf3f9eeb7aa8edeb4a55987ef7e6ab22918f97 (patch) | |
tree | d592b411dcc6fa62b4cce5f37f8ec9e93bbca082 /gcc/tree-ssa-address.c | |
parent | e6c847fb8f90b1c119a677b81cfc294b13eb7772 (diff) | |
download | gcc-6eaf3f9eeb7aa8edeb4a55987ef7e6ab22918f97.zip gcc-6eaf3f9eeb7aa8edeb4a55987ef7e6ab22918f97.tar.gz gcc-6eaf3f9eeb7aa8edeb4a55987ef7e6ab22918f97.tar.bz2 |
Simplify range location creation in C++ parser.
Many places in the parser follow the same pattern of capturing the location
of the last lexed token, either before or after lexing it, and then using
that as the end of a location range; this can be simplified by passing the
lexer to make_location and grabbing the token location there.
* parser.c (make_location): Add overload taking cp_lexer* as last
parameter.
From-SVN: r273516
Diffstat (limited to 'gcc/tree-ssa-address.c')
0 files changed, 0 insertions, 0 deletions