tinygo/compiler
Ayke van Laethem c25fe609a9 compiler: do not return an error from getLLVMType
This commit replaces "unknown type" errors in getLLVMType with panics.

The main reason this is done is that it simplifies the code *a lot*.
Many `if err != nil` lines were there just because of type information.
Additionally, simply panicking is probably a better approach as the only
way this error can be produced is either with big new language features
or a serious compiler bug. Panicking is probably a better way to handle
this error anyway.
2019-04-26 08:52:10 +02:00
..
asserts.go compiler: fix MakeSlice bounds check and casting 2019-04-10 20:21:33 +02:00
calls.go compiler: simplify code around getZeroValue 2019-04-26 08:52:10 +02:00
channel.go compiler: do not return an error from getLLVMType 2019-04-26 08:52:10 +02:00
compiler.go compiler: do not return an error from getLLVMType 2019-04-26 08:52:10 +02:00
defer.go compiler: do not return an error from getLLVMType 2019-04-26 08:52:10 +02:00
errors.go compiler: return error messages with source location 2018-12-01 17:41:15 +01:00
func-lowering.go compiler: lower func values to switch + direct call 2019-04-17 23:12:59 +02:00
func.go compiler: do not return an error from getLLVMType 2019-04-26 08:52:10 +02:00
goroutine-lowering.go all: implement trivial select statements 2019-03-23 16:16:19 +01:00
inlineasm.go compiler: extract inline asm builtins into separate file 2019-04-17 23:12:59 +02:00
interface-lowering.go compiler: fix interface lowering pass 2019-04-15 19:43:17 +02:00
interface.go compiler: do not return an error from getLLVMType 2019-04-26 08:52:10 +02:00
llvm.go all: rename go-llvm to new import path 2019-01-27 19:26:16 +01:00
map.go compiler: do not return an error from getLLVMType 2019-04-26 08:52:10 +02:00
optimizer.go compiler: simplify code around getZeroValue 2019-04-26 08:52:10 +02:00
reflect.go reflect: add limited support for all type kinds 2019-02-05 17:11:09 +01:00
sizes.go cgo: implement C unions 2019-04-17 11:56:40 +02:00
syscall.go all: add macOS support 2019-02-19 15:54:36 +01:00