[ModuleInterface] Pass Through Flags for Nested Types Tables

When a swift module is generated from a swift interface file, we must
remember to setup the nested types tables. Plumb the flag down from the
frontend options.

In the future, we must remove the ability to turn this off. There's
literally zero reason to have this be a configuration option anymore.

Resolves rdar://59202687 and its many, many dupes.
This commit is contained in:
Robert Widmann
2020-02-07 12:04:46 -08:00
parent b4386f43e8
commit f56fee839b
3 changed files with 38 additions and 1 deletions

View File

@@ -347,6 +347,8 @@ bool ModuleInterfaceBuilder::buildSwiftModuleInternal(
// optimization pipeline.
SerializationOptions SerializationOpts;
std::string OutPathStr = OutPath;
SerializationOpts.EnableNestedTypeLookupTable
= FEOpts.EnableSerializationNestedTypeLookupTable;
SerializationOpts.OutputPath = OutPathStr.c_str();
SerializationOpts.ModuleLinkName = FEOpts.ModuleLinkName;
SerializationOpts.AutolinkForceLoad =