use new noncopyable types infrastructure

The infrastructure underpinning the new feature NoncopyableGenerics is
mature enough to be used.
This commit is contained in:
Kavon Farvardin
2024-03-12 17:50:38 -07:00
parent af933c6723
commit 149c052ec5
44 changed files with 150 additions and 610 deletions

View File

@@ -837,7 +837,6 @@ void Serializer::writeBlockInfoBlock() {
BLOCK_RECORD(control_block, CHANNEL);
BLOCK_RECORD(control_block, IS_OSSA);
BLOCK_RECORD(control_block, ALLOWABLE_CLIENT_NAME);
BLOCK_RECORD(control_block, HAS_NONCOPYABLE_GENERICS);
BLOCK(OPTIONS_BLOCK);
BLOCK_RECORD(options_block, SDK_PATH);
@@ -987,7 +986,6 @@ void Serializer::writeHeader() {
control_block::ChannelLayout Channel(Out);
control_block::IsOSSALayout IsOSSA(Out);
control_block::AllowableClientLayout Allowable(Out);
control_block::HasNoncopyableGenerics HasNoncopyableGenerics(Out);
// Write module 'real name', which can be different from 'name'
// in case module aliasing is used (-module-alias flag)
@@ -1042,9 +1040,6 @@ void Serializer::writeHeader() {
IsOSSA.emit(ScratchRecord, Options.IsOSSA);
HasNoncopyableGenerics.emit(ScratchRecord,
getASTContext().LangOpts.hasFeature(Feature::NoncopyableGenerics));
{
llvm::BCBlockRAII restoreBlock(Out, OPTIONS_BLOCK_ID, 4);