[Lldb-commits] [lldb] [lldb][macOS] Recognize new layouts for DeviceSupport directories (PR #188646)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Thu Mar 26 07:18:40 PDT 2026


================
@@ -23,62 +23,81 @@ using namespace lldb_private;
 PlatformDarwinDevice::~PlatformDarwinDevice() = default;
 
 FileSystem::EnumerateDirectoryResult
-PlatformDarwinDevice::GetContainedFilesIntoVectorOfStringsCallback(
+PlatformDarwinDevice::GetContainedFilesIntoVectorOfFileSpecsCallback(
     void *baton, llvm::sys::fs::file_type ft, llvm::StringRef path) {
-  ((PlatformDarwinDevice::SDKDirectoryInfoCollection *)baton)
-      ->push_back(PlatformDarwinDevice::SDKDirectoryInfo(FileSpec(path)));
+  ((std::vector<FileSpec> *)baton)->push_back(FileSpec(path));
   return FileSystem::eEnumerateDirectoryResultNext;
 }
 
+void PlatformDarwinDevice::AddSharedCacheDirectory(
+    const char *dir, const char *log_msg_descriptor) {
----------------
JDevlieghere wrote:

Seems like both of these can be StringRefs.

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


More information about the lldb-commits mailing list