Simplify gv:S_maybe_add_coresub
authorFather Chrysostomos <sprout@cpan.org>
Sun, 1 Jan 2012 21:06:27 +0000 (13:06 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 1 Jan 2012 21:07:30 +0000 (13:07 -0800)
commit8756617677dbda9a9ac19ac3155ca3bbabbf75a8
tree278710b46c7769f71bb732a6ad4db5f158658453
parent62f789982833b2c6a9005f78da558557992fcf8f
Simplify gv:S_maybe_add_coresub

It was working around the fact that newATTRSUB expects to be able to
look up the GV by name.

And for speed, it was going through hoops to try to avoid creating
extra SVs holding the name unnecessarily.

By tweaking newATTRSUB to accept a GV instead of a name, we can sim-
plify not only S_maybe_add_coresub but all its callers, too.
gv.c
op.c