[PATCH] D17061: [MS ABI] Never reference dllimport'd vtables

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 9 17:07:11 PST 2016


rnk accepted this revision.
rnk added a comment.
This revision is now accepted and ready to land.

lgtm if you clarify that bit


================
Comment at: lib/CodeGen/MicrosoftCXXABI.cpp:1676
@@ -1675,2 +1675,3 @@
 
-  llvm::GlobalValue::LinkageTypes VFTableLinkage = CGM.getVTableLinkage(RD);
+  llvm::GlobalValue::LinkageTypes VFTableLinkage =
+      RD->hasAttr<DLLImportAttr>() ? llvm::GlobalValue::LinkOnceODRLinkage
----------------
According to you, this is a crazy special case, add comments. :)


http://reviews.llvm.org/D17061





More information about the cfe-commits mailing list