eolian_mono: Generate placeholder fields for empty structs
authorLauro Moura <lauromoura@expertisesolutions.com.br>
Fri, 1 Dec 2017 03:43:12 +0000 (00:43 -0300)
committerLauro Moura <lauromoura@expertisesolutions.com.br>
Mon, 4 Dec 2017 18:47:53 +0000 (15:47 -0300)
commite19465bc354a8e831581e34a5cefa36950462667
tree09414ffca69304467cf6e1fee5200509dc978d23
parent3c5efa1e8dfee3d619e1b4fc6f23d6ae29085000
eolian_mono: Generate placeholder fields for empty structs

Mono's JIT fails to generate function pointer for delegates with empty
structs in the signature, leading to those mini-amd64.c crashes on empty
fields.

This commit generates a placeholder IntPtr field in empty structs.
src/bin/eolian_mono/eolian/mono/struct_definition.hh