Commit 15b0d137 authored by Josh Bleecher Snyder's avatar Josh Bleecher Snyder

cmd/compile: clean up comments

Follow-up to CL 94256.

Change-Id: I61c450dee5975492192453738f734f772e95c1a5
Reviewed-on: https://go-review.googlesource.com/97515Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 4f5389c3
...@@ -73,14 +73,14 @@ type Types struct { ...@@ -73,14 +73,14 @@ type Types struct {
BytePtrPtr *types.Type BytePtrPtr *types.Type
} }
// Instantiate the SSA type pointers. // NewTypes creates and populates a Types.
func NewTypes() *Types { func NewTypes() *Types {
t := new(Types) t := new(Types)
t.SetTypPtrs() t.SetTypPtrs()
return t return t
} }
// Populate the SSA type pointers. // SetTypPtrs populates t.
func (t *Types) SetTypPtrs() { func (t *Types) SetTypPtrs() {
t.Bool = types.Types[types.TBOOL] t.Bool = types.Types[types.TBOOL]
t.Int8 = types.Types[types.TINT8] t.Int8 = types.Types[types.TINT8]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment