Toshiyasu Morita via llvm-dev
2017-Mar-28 00:48 UTC
[llvm-dev] C binding for CloneFunctionInto()
I'd like to call CloneFunctionInto() from C code, so I tried to create a C binding. However, it seems some of the parameters to CloneFunctionInto() are references, not pointers, and the wrap/unwrap macros do not work on references. Is there a better way to create a C binding for CloneFunctionInto()? Toshi -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170327/7dea2ce0/attachment.html>
Toshiyasu Morita via llvm-dev
2017-Mar-28 01:19 UTC
[llvm-dev] C binding for CloneFunctionInto()
Ah, never mind...just realized I can just deref the pointer. Toshi On Mon, Mar 27, 2017 at 5:48 PM, Toshiyasu Morita <toshi at tensyr.com> wrote:> I'd like to call CloneFunctionInto() from C code, so I tried to create a C > binding. > However, it seems some of the parameters to CloneFunctionInto() are > references, not pointers, and the wrap/unwrap macros do not work on > references. > > Is there a better way to create a C binding for CloneFunctionInto()? > > Toshi > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170327/67a32908/attachment.html>