Add magic "literal" __DSO_HANDLE__ to refer to the DSO handle.

__DSO_HANDLE__ can be used as a callee-side default
argument. Addresses rdar://problem/17878114.


Swift SVN r21440
This commit is contained in:
Doug Gregor
2014-08-25 16:33:54 +00:00
parent 31303ce50a
commit 51c1433ddd
21 changed files with 157 additions and 104 deletions

View File

@@ -40,7 +40,7 @@ const uint16_t VERSION_MAJOR = 0;
/// Serialized module format minor version number.
///
/// When the format changes IN ANY WAY, this number should be incremented.
const uint16_t VERSION_MINOR = 129;
const uint16_t VERSION_MINOR = 130;
using DeclID = Fixnum<31>;
using DeclIDField = BCFixed<31>;
@@ -202,6 +202,7 @@ enum DefaultArgumentKind : uint8_t {
Column,
Function,
Inherited,
DSOHandle,
};
using DefaultArgumentField = BCFixed<3>;