runtime: rm ignoreName

This commit is contained in:
visualfc
2025-02-15 14:51:11 +08:00
parent 0d218bb4b9
commit 8be9a560e9
3 changed files with 13 additions and 40 deletions

View File

@@ -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")

View File

@@ -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)
}
// -----------------------------------------------------------------------------