Add SIL and IRGen support for a ConstantStringLiteral instruction

This supports a utf8 or utf16 encoding.

rdar://30545013
This commit is contained in:
Arnold Schwaighofer
2017-04-10 09:47:54 -07:00
parent 3623d408ca
commit b167b4475d
22 changed files with 463 additions and 10 deletions

View File

@@ -54,7 +54,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 = 331; // Last change: type witness substitutions
const uint16_t VERSION_MINOR = 332; // Last change: constant_string_literal
using DeclID = PointerEmbeddedInt<unsigned, 31>;
using DeclIDField = BCFixed<31>;