aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/deadcode_test.go
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2015-06-04 15:18:27 -0700
committerKeith Randall <khr@golang.org>2015-06-04 22:26:22 +0000
commit1114a76ae6081242c38614aeb4ff9c37b8be75c4 (patch)
tree9378ae1fa06251424bf53709d96e93507ec168aa /src/cmd/compile/internal/ssa/deadcode_test.go
parentf7f604e28459ac993b86832b769438c4a35f06c2 (diff)
downloadgo-1114a76ae6081242c38614aeb4ff9c37b8be75c4.tar.gz
go-1114a76ae6081242c38614aeb4ff9c37b8be75c4.zip
[dev.ssa] cmd/compile/internal/ssa: Add dummy frontend for testing.
Change-Id: Ica26c0297ac7afeb0b5b668cf5f5cd1667c6cc43 Reviewed-on: https://go-review.googlesource.com/10699 Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Diffstat (limited to 'src/cmd/compile/internal/ssa/deadcode_test.go')
-rw-r--r--src/cmd/compile/internal/ssa/deadcode_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/compile/internal/ssa/deadcode_test.go b/src/cmd/compile/internal/ssa/deadcode_test.go
index 07e017c73a..10b8976e0f 100644
--- a/src/cmd/compile/internal/ssa/deadcode_test.go
+++ b/src/cmd/compile/internal/ssa/deadcode_test.go
@@ -7,7 +7,7 @@ package ssa
import "testing"
func TestDeadLoop(t *testing.T) {
- c := NewConfig("amd64")
+ c := NewConfig("amd64", DummyFrontend{})
fun := Fun(c, "entry",
Bloc("entry",
Valu("mem", OpArg, TypeMem, ".mem"),
@@ -37,7 +37,7 @@ func TestDeadLoop(t *testing.T) {
}
func TestDeadValue(t *testing.T) {
- c := NewConfig("amd64")
+ c := NewConfig("amd64", DummyFrontend{})
fun := Fun(c, "entry",
Bloc("entry",
Valu("mem", OpArg, TypeMem, ".mem"),
@@ -60,7 +60,7 @@ func TestDeadValue(t *testing.T) {
}
func TestNeverTaken(t *testing.T) {
- c := NewConfig("amd64")
+ c := NewConfig("amd64", DummyFrontend{})
fun := Fun(c, "entry",
Bloc("entry",
Valu("cond", OpConst, TypeBool, false),