@@ -941,7 +941,7 @@ void ASTWriter::WriteBlockInfoBlock() {
941
941
RECORD(PENDING_IMPLICIT_INSTANTIATIONS);
942
942
RECORD(UPDATE_VISIBLE);
943
943
RECORD(DELAYED_NAMESPACE_LEXICAL_VISIBLE_RECORD);
944
- RECORD(FUNCTION_DECL_TO_LAMBDAS_MAP );
944
+ RECORD(RELATED_DECLS_MAP );
945
945
RECORD(DECL_UPDATE_OFFSETS);
946
946
RECORD(DECL_UPDATES);
947
947
RECORD(CUDA_SPECIAL_DECL_REFS);
@@ -5972,23 +5972,23 @@ void ASTWriter::WriteDeclAndTypes(ASTContext &Context) {
5972
5972
Stream.EmitRecord(DELAYED_NAMESPACE_LEXICAL_VISIBLE_RECORD,
5973
5973
DelayedNamespaceRecord);
5974
5974
5975
- if (!FunctionToLambdasMap .empty()) {
5976
- // TODO: on disk hash table for function to lambda mapping might be more
5975
+ if (!RelatedDeclsMap .empty()) {
5976
+ // TODO: on disk hash table for related decls mapping might be more
5977
5977
// efficent becuase it allows lazy deserialization.
5978
- RecordData FunctionToLambdasMapRecord ;
5979
- for (const auto &Pair : FunctionToLambdasMap ) {
5980
- FunctionToLambdasMapRecord .push_back(Pair.first.getRawValue());
5981
- FunctionToLambdasMapRecord .push_back(Pair.second.size());
5978
+ RecordData RelatedDeclsMapRecord ;
5979
+ for (const auto &Pair : RelatedDeclsMap ) {
5980
+ RelatedDeclsMapRecord .push_back(Pair.first.getRawValue());
5981
+ RelatedDeclsMapRecord .push_back(Pair.second.size());
5982
5982
for (const auto &Lambda : Pair.second)
5983
- FunctionToLambdasMapRecord .push_back(Lambda.getRawValue());
5983
+ RelatedDeclsMapRecord .push_back(Lambda.getRawValue());
5984
5984
}
5985
5985
5986
5986
auto Abv = std::make_shared<llvm::BitCodeAbbrev>();
5987
- Abv->Add(llvm::BitCodeAbbrevOp(FUNCTION_DECL_TO_LAMBDAS_MAP ));
5987
+ Abv->Add(llvm::BitCodeAbbrevOp(RELATED_DECLS_MAP ));
5988
5988
Abv->Add(llvm::BitCodeAbbrevOp(llvm::BitCodeAbbrevOp::Array));
5989
5989
Abv->Add(llvm::BitCodeAbbrevOp(llvm::BitCodeAbbrevOp::VBR, 6));
5990
5990
unsigned FunctionToLambdaMapAbbrev = Stream.EmitAbbrev(std::move(Abv));
5991
- Stream.EmitRecord(FUNCTION_DECL_TO_LAMBDAS_MAP, FunctionToLambdasMapRecord ,
5991
+ Stream.EmitRecord(RELATED_DECLS_MAP, RelatedDeclsMapRecord ,
5992
5992
FunctionToLambdaMapAbbrev);
5993
5993
}
5994
5994
0 commit comments