github.com/jgarto/itcv@v0.0.0-20180826224514-4eea09c1aa0d/_vendor/src/golang.org/x/tools/cmd/godex/gccgo.go (about) 1 // Copyright 2014 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. 4 5 // This file implements access to gccgo-generated export data. 6 7 package main 8 9 import ( 10 "go/importer" 11 "go/types" 12 ) 13 14 func init() { 15 register("gccgo", importer.For("gccgo", nil)) 16 } 17 18 // Print the extra gccgo compiler data for this package, if it exists. 19 func (p *printer) printGccgoExtra(pkg *types.Package) { 20 // Disabled for now. 21 // TODO(gri) address this at some point. 22 23 // if initdata, ok := initmap[pkg]; ok { 24 // p.printf("/*\npriority %d\n", initdata.Priority) 25 26 // p.printDecl("init", len(initdata.Inits), func() { 27 // for _, init := range initdata.Inits { 28 // p.printf("%s %s %d\n", init.Name, init.InitFunc, init.Priority) 29 // } 30 // }) 31 32 // p.print("*/\n") 33 // } 34 }