diff options
author | Filippo Valsorda <filippo@golang.org> | 2020-10-16 22:30:09 +0200 |
---|---|---|
committer | Filippo Valsorda <filippo@golang.org> | 2020-10-16 22:30:09 +0200 |
commit | ed9dc25d693c02aeeb8ed084b28b6d7f9489dc5a (patch) | |
tree | 607e9be8b09af4947c54461f5f682913871493fb /src/cmd/cgo/out.go | |
parent | dbc5602d18397d1841cb7b2e8974d472c15dee83 (diff) | |
parent | 1984ee00048b63eacd2155cd6d74a2d13e998272 (diff) | |
download | go-ed9dc25d693c02aeeb8ed084b28b6d7f9489dc5a.tar.gz go-ed9dc25d693c02aeeb8ed084b28b6d7f9489dc5a.zip |
[dev.boringcrypto.go1.15] all: merge go1.15.3 into dev.boringcrypto.go1.15
Change-Id: Ie6adbf4564f8a025ff7fa21f31c0cd19ad8bc232
Diffstat (limited to 'src/cmd/cgo/out.go')
-rw-r--r-- | src/cmd/cgo/out.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/cgo/out.go b/src/cmd/cgo/out.go index 4064f0ae41..cbdb4e0f5b 100644 --- a/src/cmd/cgo/out.go +++ b/src/cmd/cgo/out.go @@ -108,6 +108,9 @@ func (p *Package) writeDefs() { sort.Strings(typedefNames) for _, name := range typedefNames { def := typedef[name] + if def.NotInHeap { + fmt.Fprintf(fgo2, "//go:notinheap\n") + } fmt.Fprintf(fgo2, "type %s ", name) // We don't have source info for these types, so write them out without source info. // Otherwise types would look like: |