[PATCH] D17061: [MS ABI] Never reference dllimport'd vtables
David Majnemer via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 9 17:01:26 PST 2016
majnemer created this revision.
majnemer added reviewers: rnk, hans, thakis, rsmith.
majnemer added a subscriber: cfe-commits.
Referencing a dllimported vtable is impossible in a constexpr
constructor. It would be friendlier to C++ programmers if we
synthesized a copy of the vftable which referenced imported virtual
functions. This would let us initialize the object in a way which
preserves both the intent to import functionality from another DLL while
also making constexpr work.
http://reviews.llvm.org/D17061
Files:
lib/AST/MicrosoftMangle.cpp
lib/AST/VTableBuilder.cpp
lib/CodeGen/MicrosoftCXXABI.cpp
test/CodeGenCXX/dllimport-rtti.cpp
test/CodeGenCXX/dllimport.cpp
test/CodeGenCXX/microsoft-abi-vftables.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17061.47407.patch
Type: text/x-patch
Size: 5010 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160210/805a73c2/attachment.bin>
More information about the cfe-commits
mailing list