mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
[cmo] [aggresive] Don't attach the usableFromInline attribute
in the CMO pass in aggressive mode Changing the AST mid-pipeline is probably not a good idea. rdar://173172456
This commit is contained in:
@@ -234,6 +234,9 @@ static bool readOptionsBlock(llvm::BitstreamCursor &cursor,
|
||||
case options_block::OSLOG_STRING_SECTION_NAME:
|
||||
extendedInfo.setOSLogStringSectionName(blobData);
|
||||
break;
|
||||
case options_block::AGGRESSIVE_CMO:
|
||||
extendedInfo.setAggressiveCMOEnabled(true);
|
||||
break;
|
||||
default:
|
||||
// Unknown options record, possibly for use by a future version of the
|
||||
// module format.
|
||||
@@ -1588,6 +1591,7 @@ ModuleFileSharedCore::ModuleFileSharedCore(
|
||||
Bits.SerializePackageEnabled = extInfo.serializePackageEnabled();
|
||||
Bits.StrictMemorySafety = extInfo.strictMemorySafety();
|
||||
Bits.DeferredCodeGen = extInfo.deferredCodeGen();
|
||||
Bits.AggressiveCMOEnabled = extInfo.isAggressiveCMOEnabled();
|
||||
MiscVersion = info.miscVersion;
|
||||
SDKVersion = info.sdkVersion;
|
||||
ModuleABIName = extInfo.getModuleABIName();
|
||||
|
||||
Reference in New Issue
Block a user