================
@@ -318,6 +318,9 @@ namespace {
if (Diags.hasUnrecoverableErrorOccurred())
return;
+ if (RD->shouldEmitInExternalSource())
----------------
efriedma-quic wrote:
Most of the CodeGen code surrounding vtable emission is optimizations.
Specifically, to avoid emitting vtables which are odr-used but not actually
necessary to emit, and to allow emitting available_externally vtables. If we
didn't care about those optimizations, the code would be pretty simple.
https://github.com/llvm/llvm-project/pull/75912
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits