Record parseable interface imports in the debug info.

When a Swift module built with debug info imports a library without
debug info from a textual interface, the textual interface is
necessary to reconstruct types defined in the library's interface.  By
recording the Swift interface files in DWARF dsymutil can collect them
and LLDB can find them.

rdar://problem/49751363
This commit is contained in:
Adrian Prantl
2019-04-09 14:45:46 -07:00
parent c4626baf88
commit 8d03cb7a61
13 changed files with 77 additions and 10 deletions

View File

@@ -1332,6 +1332,11 @@ ModuleFile::ModuleFile(
SearchPaths.push_back({blobData, isFramework, isSystem});
break;
}
case input_block::PARSEABLE_INTERFACE_PATH: {
if (extInfo)
extInfo->setParseableInterface(blobData);
break;
}
default:
// Unknown input kind, possibly for use by a future version of the
// module format.