]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: clean up comments
authorJosh Bleecher Snyder <josharian@gmail.com>
Tue, 27 Feb 2018 19:53:35 +0000 (11:53 -0800)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 27 Feb 2018 20:06:22 +0000 (20:06 +0000)
Follow-up to CL 94256.

Change-Id: I61c450dee5975492192453738f734f772e95c1a5
Reviewed-on: https://go-review.googlesource.com/97515
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/ssa/config.go

index 1226ca7a5aafe9fa146154ef03c17e0c8407e921..ad8416e9e17f17cd39cb81349f17bb8625725c54 100644 (file)
@@ -73,14 +73,14 @@ type Types struct {
        BytePtrPtr *types.Type
 }
 
-// Instantiate the SSA type pointers.
+// NewTypes creates and populates a Types.
 func NewTypes() *Types {
        t := new(Types)
        t.SetTypPtrs()
        return t
 }
 
-// Populate the SSA type pointers.
+// SetTypPtrs populates t.
 func (t *Types) SetTypPtrs() {
        t.Bool = types.Types[types.TBOOL]
        t.Int8 = types.Types[types.TINT8]