[LLVMdev] OCaml Bindings: usage of the setGC function

Frank White frankwhite1003 at gmail.com
Mon Mar 3 12:35:00 PST 2014


Hello everyone...

I'm currently trying to use the [set_gc gc f] function without success. The
function type is "string option -> llvalue -> unit"


I have tried

set_gc "shadow-stack" func;

"Error: This expression has type string but an expression was expected of
type
         string option"


and


set_gc ~gc:"shadow-stack" func;

"Error: The function applied to this argument has type Llvm.llvalue -> unit
This argument cannot be applied with label ~gc"


Is anyone aware of the correct syntax for using this function?

Thanks,
Frank
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140303/83112f05/attachment.html>


More information about the llvm-dev mailing list