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

Hans Wennborg hans at chromium.org
Thu Jul 17 11:17:31 PDT 2014


> I believe this should be controlled by -fms-compatibility not that ABI. MSDN says that compiling with /Za would disable this behavior: http://msdn.microsoft.com/en-us/library/34h23df8.aspx

Sounds reasonable. I've updated the patch.

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/dllexport-members.cpp
  test/CodeGenCXX/dllimport-members.cpp
  test/CodeGenCXX/ms-integer-static-data-members-exported.cpp
  test/CodeGenCXX/ms-integer-static-data-members.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4563.11601.patch
Type: text/x-patch
Size: 12535 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140717/a55a5974/attachment.bin>


More information about the cfe-commits mailing list