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.
5 // This file implements access to gccgo-generated export data.
16 register("gccgo", importer.ForCompiler(token.NewFileSet(), "gccgo", nil))
19 // Print the extra gccgo compiler data for this package, if it exists.
20 func (p *printer) printGccgoExtra(pkg *types.Package) {
22 // TODO(gri) address this at some point.
24 // if initdata, ok := initmap[pkg]; ok {
25 // p.printf("/*\npriority %d\n", initdata.Priority)
27 // p.printDecl("init", len(initdata.Inits), func() {
28 // for _, init := range initdata.Inits {
29 // p.printf("%s %s %d\n", init.Name, init.InitFunc, init.Priority)