• Robert Griesemer's avatar
    go/types: fix sizeof computations · a5e42f26
    Robert Griesemer authored
    Context.Alignof/Offsetsof/Sizeof now provide means
    to customize the type checker for a given platform.
    
    - provide Context.Offsetsof to specify the
      offsets of struct fields
    - use the correct sizes for ints, uint, uintptrs
      in constant computations
    - moved all size computations into separate file
      (sizes.go)
    - fixed a bug with string constant slicing
    
    R=adonovan, axwalk
    CC=golang-dev
    https://golang.org/cl/7363054
    a5e42f26
importer.go 2.99 KB