5 Commits

Author SHA1 Message Date
Mitchell Hashimoto
1bce3d8e72 pkg/objc: make ptrcast var so that LLVM backend sees sig 2022-11-20 08:19:50 -08:00
Mitchell Hashimoto
2100523822 pkg/objc: correct objc_msgSend call on x86_64 depending on return type
On x86_64, we have to use specialized forms of `objc_msgSend` depending
on the return type (and the byte size of the return type). If we don't
do this, the calling convention is wrong and we'll get a segfault when
objc_msgSend tries to read a register that is [rightly] not set.

On aarch64, we do not have this issue because the calling convention is
different and objc_msgSend handles all cases.
2022-11-19 21:45:38 -08:00
Mitchell Hashimoto
59cb774cdd pkg/objc: properties 2022-10-25 21:25:07 -07:00
Mitchell Hashimoto
aaaae38fa1 pkg/objc: more message send stuff 2022-10-25 20:55:41 -07:00
Mitchell Hashimoto
7d48e564b5 pkg/objc: message send 2022-10-25 20:30:42 -07:00