diff options
author | Nathan Sidwell <nathan@acm.org> | 2020-05-04 09:49:52 -0700 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2020-05-04 09:49:52 -0700 |
commit | 97268c374a348a60c53366a4bee67626c840e4a1 (patch) | |
tree | a3c16ad18bf78578e36e74665e41ed27c298483f /gcc/objc | |
parent | f1621d18f5517977c161f0fb29c54b4ef7d8245c (diff) | |
download | gcc-97268c374a348a60c53366a4bee67626c840e4a1.zip gcc-97268c374a348a60c53366a4bee67626c840e4a1.tar.gz gcc-97268c374a348a60c53366a4bee67626c840e4a1.tar.bz2 |
c++: Simplify process_template_parm
Process_template_parm ends up walking the parameter list twice.
There's not need to do this. Just rember the final node and modify
its CHAIN directly. Also comment on why end_template_parm_list does a
pop and a push, rather than modifying the header in place.
pt.c (process_template_parm): Don't walk the template list twice,
remember the final node instead.
(end_template_parm_list): Refactor. Comment on why we do a pop
and a push.
Diffstat (limited to 'gcc/objc')
0 files changed, 0 insertions, 0 deletions