All the functions in LinkAllPasses.h are passes. I am not sure whether it takes inline functions. I added createPostDomTree() to LinkAllPasses.h but I get the same error. I wonder whether it was even worth it making the functions inline for PostDominators.h.<div>
<br></div><div>George<br><br><div class="gmail_quote">On Tue, Aug 21, 2012 at 9:05 AM, Tobias Grosser <span dir="ltr"><<a href="mailto:tobias@grosser.es" target="_blank">tobias@grosser.es</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 08/21/2012 02:40 PM, Duncan Sands wrote:<br>
> Hi George,<br>
><br>
>> When I compile llvm in release mode, the problem goes away! I don't understand?<br>
><br>
> probably the function defined in the header is inlined into every function that<br>
> calls it when optimization is turned on, but not when optimization is turned<br>
> off.<br>
<br>
</div>You can try to add it into include/llvm/LinkAllPasses.h. There are<br>
already a couple of other functions that have been put here to not be<br>
eliminated.<br>
<br>
BTW, is there no better way to mark a function as used externally?<br>
<br>
Tobi<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</div></div></blockquote></div><br></div>