mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-15 00:13:43 +00:00
Add dummy channel support
This commit is contained in:
@@ -462,6 +462,8 @@ func (c *Compiler) getLLVMType(goType types.Type) (llvm.Type, error) {
|
|||||||
default:
|
default:
|
||||||
return llvm.Type{}, errors.New("todo: unknown basic type: " + typ.String())
|
return llvm.Type{}, errors.New("todo: unknown basic type: " + typ.String())
|
||||||
}
|
}
|
||||||
|
case *types.Chan:
|
||||||
|
return llvm.PointerType(c.mod.GetTypeByName("runtime.channel"), 0), nil
|
||||||
case *types.Interface:
|
case *types.Interface:
|
||||||
return c.mod.GetTypeByName("runtime._interface"), nil
|
return c.mod.GetTypeByName("runtime._interface"), nil
|
||||||
case *types.Map:
|
case *types.Map:
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
package runtime
|
||||||
|
|
||||||
|
// This file implements the 'chan' type and send/receive/select operations.
|
||||||
|
|
||||||
|
// dummy
|
||||||
|
|
||||||
|
type channel struct {
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user