mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.ssa] cmd/compile: repair ssa testing build and test
Calls to NewConfig required an extra parameter that sometimes could not be nil. Change-Id: I806dd53c045056a0c2d30d641a20fe27fb790539 Reviewed-on: https://go-review.googlesource.com/16272 Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
7d61246972
commit
3abb844108
3 changed files with 14 additions and 12 deletions
|
|
@ -5,6 +5,7 @@
|
|||
package ssa
|
||||
|
||||
import (
|
||||
"cmd/internal/obj"
|
||||
"fmt"
|
||||
"testing"
|
||||
)
|
||||
|
|
@ -15,7 +16,8 @@ var Opt = opt
|
|||
var Deadcode = deadcode
|
||||
|
||||
func testConfig(t *testing.T) *Config {
|
||||
return NewConfig("amd64", DummyFrontend{t})
|
||||
testCtxt := &obj.Link{}
|
||||
return NewConfig("amd64", DummyFrontend{t}, testCtxt)
|
||||
}
|
||||
|
||||
// DummyFrontend is a test-only frontend.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue