diff options
author | leongross <[email protected]> | 2024-06-27 17:20:54 +0200 |
---|---|---|
committer | Ayke <[email protected]> | 2024-06-27 21:14:22 +0200 |
commit | 2d5a8d407bacad4f5c5c67378e83e38df271199f (patch) | |
tree | 9f34a041a9b26988d64837f43ddf7fcc3294eb07 | |
parent | 36958b2875eb777972e3813b347a9ab308b0fc14 (diff) | |
download | tinygo-2d5a8d407bacad4f5c5c67378e83e38df271199f.tar.gz tinygo-2d5a8d407bacad4f5c5c67378e83e38df271199f.zip |
add support for unix.{RawSyscall,RawSyscallNoError}
-rw-r--r-- | compiler/compiler.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/compiler.go b/compiler/compiler.go index 966c56759..004dfcaa3 100644 --- a/compiler/compiler.go +++ b/compiler/compiler.go @@ -1846,9 +1846,9 @@ func (b *builder) createFunctionCall(instr *ssa.CallCommon) (llvm.Value, error) return b.emitSV64Call(instr.Args, getPos(instr)) case strings.HasPrefix(name, "(device/riscv.CSR)."): return b.emitCSROperation(instr) - case strings.HasPrefix(name, "syscall.Syscall") || strings.HasPrefix(name, "syscall.RawSyscall") || strings.HasPrefix(name, "Syscall") || strings.HasPrefix(name, "golang.org/x/sys/unix.Syscall"): + case strings.HasPrefix(name, "syscall.Syscall") || strings.HasPrefix(name, "syscall.RawSyscall") || strings.HasPrefix(name, "golang.org/x/sys/unix.Syscall") || strings.HasPrefix(name, "golang.org/x/sys/unix.RawSyscall"): return b.createSyscall(instr) - case strings.HasPrefix(name, "syscall.rawSyscallNoError"): + case strings.HasPrefix(name, "syscall.rawSyscallNoError") || strings.HasPrefix(name, "golang.org/x/sys/unix.RawSyscallNoError"): return b.createRawSyscallNoError(instr) case name == "runtime.supportsRecover": supportsRecover := uint64(0) |