Expose Swift search paths in validateSerializedAST

This is for the benefit of LLDB, which currently does an expensive import of all
modules to get to the same information.

rdar://40097459
This commit is contained in:
Adrian Prantl
2022-12-01 11:22:07 -08:00
parent c79017115d
commit a5e1786a99
5 changed files with 65 additions and 42 deletions

View File

@@ -151,16 +151,11 @@ private:
/// All modules this module depends on.
SmallVector<Dependency, 8> Dependencies;
struct SearchPath {
std::string Path;
bool IsFramework;
bool IsSystem;
};
/// Search paths this module may provide.
///
/// This is not intended for use by frameworks, but may show up in debug
/// modules.
std::vector<SearchPath> SearchPaths;
std::vector<serialization::SearchPath> SearchPaths;
/// Info for the (lone) imported header for this module.
struct {