[LLVMdev] Fwd: DomTreeNode

George Baah georgebaah at gmail.com
Tue Aug 21 07:17:38 PDT 2012


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.

George

On Tue, Aug 21, 2012 at 9:05 AM, Tobias Grosser <tobias at grosser.es> wrote:

> On 08/21/2012 02:40 PM, Duncan Sands wrote:
> > Hi George,
> >
> >> When I compile llvm in release mode, the problem goes away! I don't
> understand?
> >
> > probably the function defined in the header is inlined into every
> function that
> > calls it when optimization is turned on, but not when optimization is
> turned
> > off.
>
> You can try to add it into include/llvm/LinkAllPasses.h. There are
> already a couple of other functions that have been put here to not be
> eliminated.
>
> BTW, is there no better way to mark a function as used externally?
>
> Tobi
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120821/21ed6768/attachment.html>


More information about the llvm-dev mailing list