Skip to content

Commit 753a83e

Browse files
Merge pull request #86036 from adrian-prantl/166494895
[LLDB] Add LLDB accessor for ModuleInterfaceLoaderOptions
2 parents ce2cff5 + b72afc7 commit 753a83e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

include/swift/Frontend/ModuleInterfaceLoader.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,9 @@ class ModuleInterfaceLoader : public SerializedModuleLoaderBase {
558558
IgnoreSwiftSourceInfoFile));
559559
}
560560

561+
/// Accessor used by LLDB.
562+
ModuleInterfaceLoaderOptions &getOptions();
563+
561564
/// Append visible module names to \p names. Note that names are possibly
562565
/// duplicated, and not guaranteed to be ordered in any way.
563566
void collectVisibleTopLevelModuleNames(

lib/Frontend/ModuleInterfaceLoader.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,6 +1304,10 @@ ModuleInterfaceLoaderOptions::ModuleInterfaceLoaderOptions(
13041304
}
13051305
}
13061306

1307+
ModuleInterfaceLoaderOptions &ModuleInterfaceLoader::getOptions() {
1308+
return InterfaceChecker.Opts;
1309+
}
1310+
13071311
bool ModuleInterfaceLoader::isCached(StringRef DepPath) {
13081312
return InterfaceChecker.isCached(DepPath);
13091313
}

0 commit comments

Comments
 (0)