AST: Record -sil-serialize-all in the ModuleDecl

We want to distinguish the special case of a library built with
-sil-serialize-all, from a SIL function that is [fragile] because
of an explicitly @_transparent or @inline(__always).

For now, NFC.
This commit is contained in:
Slava Pestov
2016-03-28 00:23:56 -07:00
parent 5f8426b206
commit 1ce1e78951
11 changed files with 86 additions and 36 deletions

View File

@@ -109,8 +109,10 @@ static bool readOptionsBlock(llvm::BitstreamCursor &cursor,
case options_block::IS_TESTABLE:
extendedInfo.setIsTestable(true);
break;
case options_block::IS_RESILIENT:
extendedInfo.setIsResilient(true);
case options_block::RESILIENCE_STRATEGY:
unsigned Strategy;
options_block::ResilienceStrategyLayout::readRecord(scratch, Strategy);
extendedInfo.setResilienceStrategy(ResilienceStrategy(Strategy));
break;
default:
// Unknown options record, possibly for use by a future version of the