[LLVMdev] Fwd: DomTreeNode

Tobias Grosser tobias at grosser.es
Tue Aug 21 06:05:11 PDT 2012


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





More information about the llvm-dev mailing list