diff options
| author | Cuong Manh Le <cuong.manhle.vn@gmail.com> | 2022-04-29 01:08:40 +0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-04-28 18:41:22 +0000 |
| commit | 15381040fa8cb2f00579595c60594964d73b09b1 (patch) | |
| tree | 3072e74cbb40bfb42d18417da633320c2c8e4fd1 /src/cmd/compile/internal/inline | |
| parent | 123e27170aac5b26c38e6bf9866e16a38aed1696 (diff) | |
| download | go-15381040fa8cb2f00579595c60594964d73b09b1.tar.xz | |
cmd/compile: remove go117ExportTypes constant
Now, 1.17 is the least supported version, the compiler always write
type information when exporting function bodies. So we can get rid of
go117ExportTypes constant and all its conditional checking codes.
Change-Id: I9ac616509c30601e94f99426049d814328253395
Reviewed-on: https://go-review.googlesource.com/c/go/+/402974
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Keith Randall <khr@golang.org>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd/compile/internal/inline')
| -rw-r--r-- | src/cmd/compile/internal/inline/inl.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/cmd/compile/internal/inline/inl.go b/src/cmd/compile/internal/inline/inl.go index 486a6ad319..1fbda92418 100644 --- a/src/cmd/compile/internal/inline/inl.go +++ b/src/cmd/compile/internal/inline/inl.go @@ -934,10 +934,6 @@ func oldInline(call *ir.CallExpr, fn *ir.Func, inlIndex int) *ir.InlinedCallExpr lab := ir.NewLabelStmt(base.Pos, retlabel) body = append(body, lab) - if !typecheck.Go117ExportTypes { - typecheck.Stmts(body) - } - if base.Flag.GenDwarfInl > 0 { for _, v := range inlfvars { v.SetPos(subst.updatedPos(v.Pos())) |
