1 // Copyright 2017 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
8 // This file contains a copy of the implementation of types.SizesFor
9 // since this function is not available in go/types before Go 1.9.
15 const defaultCompiler = "gc"
17 var gcArchSizes = map[string]*types.StdSizes{
32 func SizesFor(compiler, arch string) types.Sizes {
36 s, ok := gcArchSizes[arch]