[PATCH] MS ABI: Insert copy-constructors into the CatchableType

David Majnemer david.majnemer at gmail.com
Fri Mar 6 00:21:19 PST 2015


Hi rnk,

Find all unambiguous public classes of the exception object's class type
and reference all of their copy constructors.  Yes, this is not
conforming but it is necessary in order to implement their ABI.  This is
because the copy constructor is actually referenced by the metadata
describing which catch handlers are eligible to handle the exception
object.

N.B.  This doesn't yet handle the copy constructor closure case yet,
that work is ongoing.

http://reviews.llvm.org/D8101

Files:
  include/clang/AST/ASTContext.h
  include/clang/AST/Mangle.h
  lib/AST/ASTContext.cpp
  lib/AST/CXXABI.h
  lib/AST/ItaniumCXXABI.cpp
  lib/AST/MicrosoftCXXABI.cpp
  lib/AST/MicrosoftMangle.cpp
  lib/CodeGen/MicrosoftCXXABI.cpp
  lib/Sema/SemaExprCXX.cpp
  test/CodeGenCXX/microsoft-abi-throw.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8101.21335.patch
Type: text/x-patch
Size: 16772 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150306/a7f3a87b/attachment.bin>


More information about the cfe-commits mailing list