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.
7 // This file contains a copy of the implementation of types.SizesFor
8 // since this function is not available in go/types before Go 1.9.
14 const defaultCompiler = "gc"
16 var gcArchSizes = map[string]*types.StdSizes{
31 func SizesFor(compiler, arch string) types.Sizes {
35 s, ok := gcArchSizes[arch]