You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
846 B

  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. // This file implements access to gccgo-generated export data.
  5. package main
  6. import (
  7. "go/importer"
  8. "go/types"
  9. )
  10. func init() {
  11. register("gccgo", importer.For("gccgo", nil))
  12. }
  13. // Print the extra gccgo compiler data for this package, if it exists.
  14. func (p *printer) printGccgoExtra(pkg *types.Package) {
  15. // Disabled for now.
  16. // TODO(gri) address this at some point.
  17. // if initdata, ok := initmap[pkg]; ok {
  18. // p.printf("/*\npriority %d\n", initdata.Priority)
  19. // p.printDecl("init", len(initdata.Inits), func() {
  20. // for _, init := range initdata.Inits {
  21. // p.printf("%s %s %d\n", init.Name, init.InitFunc, init.Priority)
  22. // }
  23. // })
  24. // p.print("*/\n")
  25. // }
  26. }