• Robert Griesemer's avatar
    cmd/compile: factor out Pkg, Sym, and Type into package types · f68f2928
    Robert Griesemer authored
    - created new package cmd/compile/internal/types
    - moved Pkg, Sym, Type to new package
    - to break cycles, for now we need the (ugly) types/utils.go
      file which contains a handful of functions that must be installed
      early by the gc frontend
    - to break cycles, for now we need two functions to convert between
      *gc.Node and *types.Node (the latter is a dummy type)
    - adjusted the gc's code to use the new package and the conversion
      functions as needed
    - made several Pkg, Sym, and Type methods functions as needed
    - renamed constructors typ, typPtr, typArray, etc. to types.New,
      types.NewPtr, types.NewArray, etc.
    
    Passes toolstash-check -all.
    
    Change-Id: I8adfa5e85c731645d0a7fd2030375ed6ebf54b72
    Reviewed-on: https://go-review.googlesource.com/39855Reviewed-by: 's avatarMatthew Dempsky <mdempsky@google.com>
    f68f2928
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...