diff options
author | leongross <[email protected]> | 2024-06-25 09:52:05 +0200 |
---|---|---|
committer | Ayke <[email protected]> | 2024-06-27 21:14:22 +0200 |
commit | 36958b2875eb777972e3813b347a9ab308b0fc14 (patch) | |
tree | a1acac0b8741b3b24735abc9f057c5427c18a27d | |
parent | fae0402fdeba8a7d3a2e9b97019aeef7e3fae930 (diff) | |
download | tinygo-36958b2875eb777972e3813b347a9ab308b0fc14.tar.gz tinygo-36958b2875eb777972e3813b347a9ab308b0fc14.zip |
add support for unix.Syscall* invocations
Signed-off-by: leongross <[email protected]>
-rw-r--r-- | compiler/compiler.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/compiler.go b/compiler/compiler.go index 0ae32cc94..966c56759 100644 --- a/compiler/compiler.go +++ b/compiler/compiler.go @@ -1846,7 +1846,7 @@ 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"): + case strings.HasPrefix(name, "syscall.Syscall") || strings.HasPrefix(name, "syscall.RawSyscall") || strings.HasPrefix(name, "Syscall") || strings.HasPrefix(name, "golang.org/x/sys/unix.Syscall"): return b.createSyscall(instr) case strings.HasPrefix(name, "syscall.rawSyscallNoError"): return b.createRawSyscallNoError(instr) |