runtime: rm ignoreName
This commit is contained in:
@@ -329,12 +329,6 @@ func TestIntVal(t *testing.T) {
|
||||
intVal(&ssa.Parameter{})
|
||||
}
|
||||
|
||||
func TestIgnoreName(t *testing.T) {
|
||||
if !ignoreName("runtime/foo.bar") || ignoreName("internal/abi.Type") {
|
||||
t.Fatal("ignoreName failed")
|
||||
}
|
||||
}
|
||||
|
||||
func TestErrImport(t *testing.T) {
|
||||
var ctx context
|
||||
pkg := types.NewPackage("foo", "foo")
|
||||
|
||||
@@ -30,7 +30,6 @@ import (
|
||||
|
||||
"github.com/goplus/llgo/compiler/internal/env"
|
||||
llssa "github.com/goplus/llgo/compiler/ssa"
|
||||
llruntime "github.com/goplus/llgo/runtime"
|
||||
)
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
@@ -669,8 +668,4 @@ func replaceGoName(v string, pos int) string {
|
||||
return v
|
||||
}
|
||||
|
||||
func ignoreName(name string) bool {
|
||||
return llruntime.IgnoreName(name)
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user