![]() 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. |
||
---|---|---|
.. | ||
testdata | ||
cgo.go | ||
cgo_test.go | ||
const.go | ||
const_test.go | ||
libclang.go | ||
libclang_config.go | ||
libclang_stubs.c | ||
sync.go |