[LLVMdev] C++ Constructors

John Criswell criswell at uiuc.edu
Fri Dec 12 07:39:08 PST 2008


Chris Lattner wrote:
> [snip]
>
> Yes, that will cause it to run before anything else in the module.  If  
> you link to native code with a static ctor, the static ctors in that  
> code may run first.
>   
Thanks Chris and Anton!

Another question: the llvm.global.ctor array is an array of structures 
with an integer and a function pointer.  What information does the 
integer convey?

-- John T.

> -Chris
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>   




More information about the llvm-dev mailing list