Replace own dummy syscall with standard library syscall

This makes it easier to support other standard library packages.
This commit is contained in:
Ayke van Laethem
2018-08-30 05:58:54 +02:00
parent e01259ba77
commit 906e061e37
4 changed files with 17 additions and 8 deletions
+5
View File
@@ -1321,6 +1321,11 @@ func (c *Compiler) parseBuiltin(frame *Frame, args []ssa.Value, callName string)
}
func (c *Compiler) parseFunctionCall(frame *Frame, args []ssa.Value, llvmFn llvm.Value, blocking bool, parentHandle llvm.Value) (llvm.Value, error) {
if llvmFn.Name() == "sync.runtime_registerPoolCleanup" || llvmFn.Name() == "sync.runtime_notifyListCheck" {
// Ignore these functions calls for now, as a hack.
// TODO: implement //go:linkname.
return llvm.Value{}, nil
}
var params []llvm.Value
if blocking {
if parentHandle.IsNil() {