[ModuleInterface] Change swift-tools-version to swift-compiler-version (#25160)

swift-tools-version as used by SwiftPM is an actual, parsed field with
semantic meaning. swift-compiler-version as used when generating
module interfaces is just to record what version of the compiler
generated the interface. They shouldn't have the same name.
This commit is contained in:
Jordan Rose
2019-05-30 19:23:45 -07:00
committed by GitHub
parent e9d4687e31
commit d44edf4dbd
4 changed files with 4 additions and 4 deletions

View File

@@ -66,7 +66,7 @@ static void printToolVersionAndFlagsComment(raw_ostream &out,
Ctx.LangOpts.EffectiveLanguageVersion);
out << "// " SWIFT_INTERFACE_FORMAT_VERSION_KEY ": "
<< InterfaceFormatVersion << "\n";
out << "// " SWIFT_TOOLS_VERSION_KEY ": "
out << "// " SWIFT_COMPILER_VERSION_KEY ": "
<< ToolsVersion << "\n";
out << "// " SWIFT_MODULE_FLAGS_KEY ": "
<< Opts.ParseableInterfaceFlags << "\n";