[PATCH] Add comdat key field to llvm.global_ctors and llvm.global_dtors

Reid Kleckner rnk at google.com
Thu Apr 24 17:53:21 PDT 2014


Hi nicholas, nlewycky,

This allows us to put dynamic initializers for weak data into the same
comdat group as the data being initialized.  This is necessary for MSVC
ABI compatibility.  It should also allow GlobalOpt to fire more often
weak data on other platforms if we can sort out the initialization of
the guard variable.

http://reviews.llvm.org/D3499

Files:
  docs/LangRef.rst
  include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
  include/llvm/Target/TargetLoweringObjectFile.h
  lib/CodeGen/AsmPrinter/AsmPrinter.cpp
  lib/CodeGen/TargetLoweringObjectFileImpl.cpp
  lib/IR/Verifier.cpp
  lib/Transforms/IPO/GlobalOpt.cpp
  test/MC/COFF/global_ctors_dtors.ll
  test/Transforms/GlobalOpt/ctor-list-opt.ll
  test/Verifier/global-ctors.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3499.8825.patch
Type: text/x-patch
Size: 19180 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140425/bbf658c3/attachment.bin>


More information about the llvm-commits mailing list