aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/devirtualize
diff options
context:
space:
mode:
authorDavid Chase <drchase@google.com>2024-04-11 17:22:53 -0400
committerGopher Robot <gobot@golang.org>2024-05-20 21:19:39 +0000
commit22344e11f27d9667e7bbb6209df59e9a9e976d91 (patch)
tree10aa3e3f408737c9ff97572ef51f6b039ce76fee /src/cmd/compile/internal/devirtualize
parentecad164da79f2cea14c07b9a70dbc3df278ae8d7 (diff)
downloadgo-22344e11f27d9667e7bbb6209df59e9a9e976d91.tar.xz
cmd/compile: add structs.HostLayout
This is for the proposal, plus a few bug fixes that would/will be necessary when this is put into actual use. Fixes #66408. Updates #63131. Change-Id: I3a66e09d707dd579c59f155e7f53367f41214c30 Reviewed-on: https://go-review.googlesource.com/c/go/+/578355 Reviewed-by: Austin Clements <austin@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: David Chase <drchase@google.com>
Diffstat (limited to 'src/cmd/compile/internal/devirtualize')
-rw-r--r--src/cmd/compile/internal/devirtualize/pgo_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/devirtualize/pgo_test.go b/src/cmd/compile/internal/devirtualize/pgo_test.go
index cff4d63d51..6153b8c5ec 100644
--- a/src/cmd/compile/internal/devirtualize/pgo_test.go
+++ b/src/cmd/compile/internal/devirtualize/pgo_test.go
@@ -13,6 +13,7 @@ import (
"cmd/internal/obj"
"cmd/internal/pgo"
"cmd/internal/src"
+ "cmd/internal/sys"
"testing"
)
@@ -23,8 +24,8 @@ func init() {
types.PtrSize = 8
types.RegSize = 8
types.MaxWidth = 1 << 50
+ base.Ctxt = &obj.Link{Arch: &obj.LinkArch{Arch: &sys.Arch{Alignment: 1, CanMergeLoads: true}}}
typecheck.InitUniverse()
- base.Ctxt = &obj.Link{}
base.Debug.PGODebug = 3
}