mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add @_private(from: "SourceFile.swift") imports
A module compiled with `-enable-private-imports` allows other modules to import private declarations if the importing source file uses an ``@_private(from: "SourceFile.swift") import statement. rdar://29318654
This commit is contained in:
@@ -113,6 +113,9 @@ static bool readOptionsBlock(llvm::BitstreamCursor &cursor,
|
||||
case options_block::IS_TESTABLE:
|
||||
extendedInfo.setIsTestable(true);
|
||||
break;
|
||||
case options_block::ARE_PRIVATE_IMPORTS_ENABLED:
|
||||
extendedInfo.setPrivateImportsEnabled(true);
|
||||
break;
|
||||
case options_block::RESILIENCE_STRATEGY:
|
||||
unsigned Strategy;
|
||||
options_block::ResilienceStrategyLayout::readRecord(scratch, Strategy);
|
||||
|
||||
Reference in New Issue
Block a user