[clang] [clang][modules] Optimize construction and usage of the submodule index (PR #113391)

Jorge Gorbe Moya via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 28 12:23:49 PDT 2024


================
@@ -541,11 +541,14 @@ class ModuleMap {
   ///
   /// \param IsExplicit Whether this is an explicit submodule.
   ///
-  /// \returns The found or newly-created module, along with a boolean value
-  /// that will be true if the module is newly-created.
-  std::pair<Module *, bool> findOrCreateModule(StringRef Name, Module *Parent,
-                                               bool IsFramework,
-                                               bool IsExplicit);
+  /// \returns The found or newly-created module.
+  Module *findOrCreateModule(StringRef Name, Module *Parent, bool IsFramework,
----------------
slackito wrote:

This breaks the lldb build, which uses the returned boolean value here: https://github.com/llvm/llvm-project/blob/0d0abb351b5fcf49ccc46eba8b7f2a1f353a05a6/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp#L1233

https://github.com/llvm/llvm-project/pull/113391


More information about the cfe-commits mailing list