mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
use new noncopyable types infrastructure
The infrastructure underpinning the new feature NoncopyableGenerics is mature enough to be used.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user