Add dummy channel support
Этот коммит содержится в:
родитель
6e0c60a7a1
коммит
a4fd096393
2 изменённых файлов: 10 добавлений и 0 удалений
|
@ -462,6 +462,8 @@ func (c *Compiler) getLLVMType(goType types.Type) (llvm.Type, error) {
|
|||
default:
|
||||
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:
|
||||
return c.mod.GetTypeByName("runtime._interface"), nil
|
||||
case *types.Map:
|
||||
|
|
8
src/runtime/chan.go
Обычный файл
8
src/runtime/chan.go
Обычный файл
|
@ -0,0 +1,8 @@
|
|||
package runtime
|
||||
|
||||
// This file implements the 'chan' type and send/receive/select operations.
|
||||
|
||||
// dummy
|
||||
|
||||
type channel struct {
|
||||
}
|
Загрузка…
Создание таблицы
Сослаться в новой задаче