Add initial FreeBSD support

This commit is contained in:
Dmitri Goutnik
2019-12-14 07:36:47 -05:00
committed by Ron Evans
parent 3b2a4b64c5
commit 71a380ce8c
8 changed files with 25 additions and 5 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ func (c *Compiler) emitSyscall(frame *Frame, call *ssa.CallCommon) (llvm.Value,
return llvm.Value{}, c.makeError(call.Pos(), "unknown GOOS/GOARCH for syscall: "+c.GOOS()+"/"+c.GOARCH())
}
switch c.GOOS() {
case "linux":
case "linux", "freebsd":
// Return values: r0, r1 uintptr, err Errno
// Pseudocode:
// var err uintptr