tinygo/cgo
Ayke van Laethem 6108ee6859 cgo: refactor union support
Instead of putting the magic in the AST, generate regular accessor
methods. This avoids a number of special cases in the compiler, and
avoids missing any of them.

The resulting union accesses are somewhat clunkier to use, but the
compiler implementation has far less coupling between the CGo
implementation and the IR generator.
2019-11-07 21:39:29 +01:00
..
testdata cgo: refactor union support 2019-11-07 21:39:29 +01:00
cgo.go cgo: refactor union support 2019-11-07 21:39:29 +01:00
cgo_test.go cgo: do type checking in CGo testing 2019-11-06 16:30:07 +01:00
const.go cgo: implement the constant parser as a real parser 2019-11-05 14:18:38 +01:00
const_test.go cgo: implement the constant parser as a real parser 2019-11-05 14:18:38 +01:00
libclang.go cgo: refactor union support 2019-11-07 21:39:29 +01:00
libclang_config.go macos: use llvm@8 instead of just llvm in paths 2019-11-03 21:02:39 +01:00
libclang_stubs.c cgo: add support for bitfields using generated getters and setters 2019-06-03 16:13:19 +02:00
sync.go cgo: refactor; support multiple cgo files in a single package 2019-05-12 10:49:15 +02:00