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

@@ -53,7 +53,7 @@ const uint16_t VERSION_MAJOR = 0;
/// in source control, you should also update the comment to briefly
/// describe what change you made. The content of this comment isn't important;
/// it just ensures a conflict if two people change the module format.
const uint16_t VERSION_MINOR = 246; // Last change: @_specialize attribute
const uint16_t VERSION_MINOR = 247; // Last change: ResilienceStrategy
using DeclID = PointerEmbeddedInt<unsigned, 31>;
using DeclIDField = BCFixed<31>;
@@ -441,7 +441,7 @@ namespace options_block {
XCC,
IS_SIB,
IS_TESTABLE,
IS_RESILIENT
RESILIENCE_STRATEGY
};
using SDKPathLayout = BCRecordLayout<
@@ -463,8 +463,9 @@ namespace options_block {
IS_TESTABLE
>;
using IsResilientLayout = BCRecordLayout<
IS_RESILIENT
using ResilienceStrategyLayout = BCRecordLayout<
RESILIENCE_STRATEGY,
BCFixed<2>
>;
}