[LLVMdev] Global constructors "get lost" when transforming bitcode files

Reid Kleckner rnk at google.com
Mon Jul 7 14:17:19 PDT 2014


On Thu, Jul 3, 2014 at 10:06 AM, Jonas Wagner <jonas.wagner at epfl.ch> wrote:
>
> The llvm-dis/llvm-as operation should be a no-op, yet the global_ctors get
> lost in the process. This happens also with other operations that affect
> global_ctors, e.g., with "opt -insert-gcov-profiling".
>

This isn't strictly true.  Deserializing old bitcode will auto-upgrade it.
 In this case, it will be auto-upgraded to the 3-field form of
llvm.global_ctors.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140707/ed87f1e9/attachment.html>


More information about the llvm-dev mailing list