[clang] [C++20] [Modules] [Itanium ABI] Generate the vtable in the module unit of dynamic classes (PR #75912)

Chuanqi Xu via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 13 19:36:29 PDT 2024


================
@@ -318,6 +318,9 @@ namespace {
       if (Diags.hasUnrecoverableErrorOccurred())
         return;
 
+      if (RD->shouldEmitInExternalSource())
----------------
ChuanqiXu9 wrote:

Done. I don't mind doing it really. But what I confuse is, it looks there are a lot of codes in CodeGen to decide whether or not to emit the vtable. So it looks not like a pure Sema job to me.

https://github.com/llvm/llvm-project/pull/75912


More information about the cfe-commits mailing list