aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/export_test.go
diff options
context:
space:
mode:
authorChrisALiles <caveryliles@gmail.com>2018-02-14 14:54:59 +1100
committerJosh Bleecher Snyder <josharian@gmail.com>2018-02-27 19:40:36 +0000
commit4f5389c321b0b5623f7cbd5b9d003920ccbb94ff (patch)
tree62cb1f23688dd6adb9ce46342ee9928a8f32594d /src/cmd/compile/internal/ssa/export_test.go
parent0f2ef0ad449a76d03eec18219eb133cb39000486 (diff)
downloadgo-4f5389c321b0b5623f7cbd5b9d003920ccbb94ff.tar.gz
go-4f5389c321b0b5623f7cbd5b9d003920ccbb94ff.zip
cmd/compile: move the SSA local type definitions to a single location
Fixes #20304 Change-Id: I52ee02d1602ed7fffc96b27fd60990203c771aaf Reviewed-on: https://go-review.googlesource.com/94256 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Diffstat (limited to 'src/cmd/compile/internal/ssa/export_test.go')
-rw-r--r--src/cmd/compile/internal/ssa/export_test.go26
1 files changed, 1 insertions, 25 deletions
diff --git a/src/cmd/compile/internal/ssa/export_test.go b/src/cmd/compile/internal/ssa/export_test.go
index ac7a1b00e0..1fe0bbe6ae 100644
--- a/src/cmd/compile/internal/ssa/export_test.go
+++ b/src/cmd/compile/internal/ssa/export_test.go
@@ -184,31 +184,7 @@ func init() {
t.Align = uint8(typ.width)
types.Types[typ.et] = t
}
-
- dummyTypes = Types{
- Bool: types.Types[types.TBOOL],
- Int8: types.Types[types.TINT8],
- Int16: types.Types[types.TINT16],
- Int32: types.Types[types.TINT32],
- Int64: types.Types[types.TINT64],
- UInt8: types.Types[types.TUINT8],
- UInt16: types.Types[types.TUINT16],
- UInt32: types.Types[types.TUINT32],
- UInt64: types.Types[types.TUINT64],
- Float32: types.Types[types.TFLOAT32],
- Float64: types.Types[types.TFLOAT64],
- Int: types.Types[types.TINT],
- Uintptr: types.Types[types.TUINTPTR],
- String: types.Types[types.TSTRING],
- BytePtr: types.NewPtr(types.Types[types.TUINT8]),
- Int32Ptr: types.NewPtr(types.Types[types.TINT32]),
- UInt32Ptr: types.NewPtr(types.Types[types.TUINT32]),
- IntPtr: types.NewPtr(types.Types[types.TINT]),
- UintptrPtr: types.NewPtr(types.Types[types.TUINTPTR]),
- Float32Ptr: types.NewPtr(types.Types[types.TFLOAT32]),
- Float64Ptr: types.NewPtr(types.Types[types.TFLOAT64]),
- BytePtrPtr: types.NewPtr(types.NewPtr(types.Types[types.TUINT8])),
- }
+ dummyTypes.SetTypPtrs()
}
func (d DummyFrontend) DerefItab(sym *obj.LSym, off int64) *obj.LSym { return nil }