aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Serialization/ASTWriterDecl.cpp
diff options
context:
space:
mode:
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>2024-07-10 10:46:23 +0800
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>2024-07-10 10:58:18 +0800
commit91d40ef6e369a73b0147d9153a95c3bc63e14102 (patch)
tree5b2d00e9ca9c76c394a9d7d46dd9c84abad2d356 /clang/lib/Serialization/ASTWriterDecl.cpp
parent9af1f8fbad6c8c38e7e3d6c1cfe7e4b2519db3d8 (diff)
downloadllvm-91d40ef6e369a73b0147d9153a95c3bc63e14102.zip
llvm-91d40ef6e369a73b0147d9153a95c3bc63e14102.tar.gz
llvm-91d40ef6e369a73b0147d9153a95c3bc63e14102.tar.bz2
Revert "[C++20] [Modules] [Itanium ABI] Generate the vtable in the module unit of dynamic classes (#75912)"
This reverts commit 18f3bcbb13ca83d33223b00761d8cddf463e9ffb, 15bb02650e26875c48889053d6a9697444583721 and 99873b35da7ecb905143c8a6b8deca4d4416f1a9. See the post commit message in https://github.com/llvm/llvm-project/pull/75912 to see the reasons.
Diffstat (limited to 'clang/lib/Serialization/ASTWriterDecl.cpp')
-rw-r--r--clang/lib/Serialization/ASTWriterDecl.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/clang/lib/Serialization/ASTWriterDecl.cpp b/clang/lib/Serialization/ASTWriterDecl.cpp
index 59d94c3..b6583c5 100644
--- a/clang/lib/Serialization/ASTWriterDecl.cpp
+++ b/clang/lib/Serialization/ASTWriterDecl.cpp
@@ -1537,14 +1537,8 @@ void ASTDeclWriter::VisitCXXRecordDecl(CXXRecordDecl *D) {
if (D->isThisDeclarationADefinition())
Record.AddCXXDefinitionData(D);
- if (D->isCompleteDefinition() && D->isInNamedModule())
- Writer.AddDeclRef(D, Writer.ModularCodegenDecls);
-
// Store (what we currently believe to be) the key function to avoid
// deserializing every method so we can compute it.
- //
- // FIXME: Avoid adding the key function if the class is defined in
- // module purview since the key function is meaningless in module purview.
if (D->isCompleteDefinition())
Record.AddDeclRef(Context.getCurrentKeyFunction(D));