[PATCH] MS ABI: Always emit dllexported in-class initialized static data members (PR20140)

Hans Wennborg hans at chromium.org
Thu Jul 17 09:47:46 PDT 2014


Hi rnk, majnemer,

This patch makes us emit dllexported in-class initialized static data members (which are treated as definitions in the MS ABI), even when they're not referenced.

It also makes their special linkage reflected in the GVA linkage instead of getting massaged in CodeGen.

Please take a look!

http://reviews.llvm.org/D4563

Files:
  include/clang/AST/ASTContext.h
  lib/AST/ASTContext.cpp
  lib/CodeGen/CGCXXABI.h
  lib/CodeGen/CodeGenModule.cpp
  lib/CodeGen/MicrosoftCXXABI.cpp
  lib/CodeGen/ModuleBuilder.cpp
  test/CodeGenCXX/ms-integer-static-data-members-exported.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4563.11582.patch
Type: text/x-patch
Size: 7929 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140717/95222e47/attachment.bin>


More information about the cfe-commits mailing list