[llvm-dev] constructor and destructor attributes and priority

Max Ruttenberg via llvm-dev llvm-dev at lists.llvm.org
Tue Aug 9 07:42:46 PDT 2016

Hi all,

Are users supposed to be able to assign priorities to their
constructors/destructors globally or only within a C/C++ module?

When I glance at some LLVM documentation/code it looks to me like the code
generator sorts the llvm.global_ctors and llvm.global_dtors for a module
before emitting them with the priorities omitted. Given that, I'm assuming
that means that the user can only control priorities within the module. Am
I correct in that assumption?


Max Ruttenberg,
Member of the Technical Staff
Emu *Technology*
1400 E Angela Blvd, Unit 101
South Bend, IN 46617
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160809/47539847/attachment.html>

More information about the llvm-dev mailing list