mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
123e27170a
commit
15381040fa
4 changed files with 155 additions and 355 deletions
|
|
@ -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()))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue