• Josh Bleecher Snyder's avatar
    cmd/compile: add newnamel, use in tempAt · 3d90378d
    Josh Bleecher Snyder authored
    newnamel is newname but with no dependency on lineno or Curfn.
    This makes it suitable for use in a concurrent back end.
    Use it now to make tempAt global-free.
    
    The decision to push the assignment to n.Name.Curfn
    to the caller of newnamel is based on mdempsky's
    comments in #19683 that he'd like to do that
    for callers of newname as well.
    
    Passes toolstash-check. No compiler performance impact.
    
    Updates #19683
    Updates #15756
    
    Change-Id: Idc461a1716916d268c9ff323129830d9a6e4a4d9
    Reviewed-on: https://go-review.googlesource.com/39191
    Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarRobert Griesemer <gri@golang.org>
    3d90378d
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...