<div>Hi,</div><div><br></div><div>I've followed the <a href="http://llvm.org/docs/tutorial/LangImpl4.html">LLVM tutorial</a> to create an execution environment for my DSL and want to enable the shadow stack for garbage collection.  On all functions generated by my compiler I call setGC("shadow-stack"). </div>
<div><br></div><div>I end up with IR functions like this:</div><div><br></div><div><div>define float @"main float"(float %x) gc "shadow-stack" {</div><div>entry:</div><div>......</div><div>......</div>
<div>}</div></div><div><br></div><div>When I try to execute a function using executionEngine->getPointerToFunction(myFunction) it returns the following error: unsupported GC: shadow-stack </div><div><br></div><div>Am I missing some initialisation step? Is there example code of correct shadow stack usage folk can steer me towards?</div>
<div><br></div><div>Sorry to bother the group with such a trivial questions.</div><div>Don</div>