Skip to content

Commit 1fdec59

Browse files
abpostelnicutstellar
authored andcommitted
[lldb] Fix fallout caused by D89156 on 11.0.1 for MacOS
Fix fallout caused by D89156 on 11.0.1 for MacOS Differential Revision: https://reviews.llvm.org/D95683
1 parent 85fcd46 commit 1fdec59

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

lldb/source/Plugins/Platform/MacOSX/PlatformAppleTVSimulator.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ Status PlatformAppleTVSimulator::GetSymbolFile(const FileSpec &platform_file,
282282
Status PlatformAppleTVSimulator::GetSharedModule(
283283
const ModuleSpec &module_spec, lldb_private::Process *process,
284284
ModuleSP &module_sp, const FileSpecList *module_search_paths_ptr,
285-
ModuleSP *old_module_sp_ptr, bool *did_create_ptr) {
285+
llvm::SmallVectorImpl<lldb::ModuleSP> *old_modules, bool *did_create_ptr) {
286286
// For AppleTV, the SDK files are all cached locally on the host system. So
287287
// first we ask for the file in the cached SDK, then we attempt to get a
288288
// shared module for the right architecture with the right UUID.
@@ -296,9 +296,9 @@ Status PlatformAppleTVSimulator::GetSharedModule(
296296
module_search_paths_ptr);
297297
} else {
298298
const bool always_create = false;
299-
error = ModuleList::GetSharedModule(
300-
module_spec, module_sp, module_search_paths_ptr, old_module_sp_ptr,
301-
did_create_ptr, always_create);
299+
error = ModuleList::GetSharedModule(module_spec, module_sp,
300+
module_search_paths_ptr, old_modules,
301+
did_create_ptr, always_create);
302302
}
303303
if (module_sp)
304304
module_sp->SetPlatformFileSpec(platform_file);

lldb/source/Plugins/Platform/MacOSX/PlatformAppleTVSimulator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class PlatformAppleTVSimulator : public PlatformAppleSimulator {
5555
GetSharedModule(const lldb_private::ModuleSpec &module_spec,
5656
lldb_private::Process *process, lldb::ModuleSP &module_sp,
5757
const lldb_private::FileSpecList *module_search_paths_ptr,
58-
lldb::ModuleSP *old_module_sp_ptr,
58+
llvm::SmallVectorImpl<lldb::ModuleSP> *old_modules,
5959
bool *did_create_ptr) override;
6060

6161
uint32_t

lldb/source/Plugins/Platform/MacOSX/PlatformAppleWatchSimulator.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ Status PlatformAppleWatchSimulator::GetSymbolFile(const FileSpec &platform_file,
283283
Status PlatformAppleWatchSimulator::GetSharedModule(
284284
const ModuleSpec &module_spec, lldb_private::Process *process,
285285
ModuleSP &module_sp, const FileSpecList *module_search_paths_ptr,
286-
ModuleSP *old_module_sp_ptr, bool *did_create_ptr) {
286+
llvm::SmallVectorImpl<lldb::ModuleSP> *old_modules, bool *did_create_ptr) {
287287
// For AppleWatch, the SDK files are all cached locally on the host system.
288288
// So first we ask for the file in the cached SDK, then we attempt to get a
289289
// shared module for the right architecture with the right UUID.
@@ -297,9 +297,9 @@ Status PlatformAppleWatchSimulator::GetSharedModule(
297297
module_search_paths_ptr);
298298
} else {
299299
const bool always_create = false;
300-
error = ModuleList::GetSharedModule(
301-
module_spec, module_sp, module_search_paths_ptr, old_module_sp_ptr,
302-
did_create_ptr, always_create);
300+
error = ModuleList::GetSharedModule(module_spec, module_sp,
301+
module_search_paths_ptr, old_modules,
302+
did_create_ptr, always_create);
303303
}
304304
if (module_sp)
305305
module_sp->SetPlatformFileSpec(platform_file);

lldb/source/Plugins/Platform/MacOSX/PlatformAppleWatchSimulator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class PlatformAppleWatchSimulator : public PlatformAppleSimulator {
5555
GetSharedModule(const lldb_private::ModuleSpec &module_spec,
5656
lldb_private::Process *process, lldb::ModuleSP &module_sp,
5757
const lldb_private::FileSpecList *module_search_paths_ptr,
58-
lldb::ModuleSP *old_module_sp_ptr,
58+
llvm::SmallVectorImpl<lldb::ModuleSP> *old_modules,
5959
bool *did_create_ptr) override;
6060

6161
uint32_t

lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ Status PlatformDarwinKernel::GetSharedModule(
730730
// framework on macOS systems, a chance.
731731
error = PlatformDarwin::GetSharedModule(module_spec, process, module_sp,
732732
module_search_paths_ptr,
733-
old_module_sp_ptr, did_create_ptr);
733+
old_modules, did_create_ptr);
734734
if (error.Success() && module_sp.get()) {
735735
return error;
736736
}

lldb/source/Plugins/Platform/MacOSX/PlatformiOSSimulator.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ Status PlatformiOSSimulator::GetSymbolFile(const FileSpec &platform_file,
286286

287287
Status PlatformiOSSimulator::GetSharedModule(
288288
const ModuleSpec &module_spec, Process *process, ModuleSP &module_sp,
289-
const FileSpecList *module_search_paths_ptr, ModuleSP *old_module_sp_ptr,
290-
bool *did_create_ptr) {
289+
const FileSpecList *module_search_paths_ptr,
290+
llvm::SmallVectorImpl<lldb::ModuleSP> *old_modules, bool *did_create_ptr) {
291291
// For iOS, the SDK files are all cached locally on the host system. So first
292292
// we ask for the file in the cached SDK, then we attempt to get a shared
293293
// module for the right architecture with the right UUID.
@@ -301,9 +301,9 @@ Status PlatformiOSSimulator::GetSharedModule(
301301
module_search_paths_ptr);
302302
} else {
303303
const bool always_create = false;
304-
error = ModuleList::GetSharedModule(
305-
module_spec, module_sp, module_search_paths_ptr, old_module_sp_ptr,
306-
did_create_ptr, always_create);
304+
error = ModuleList::GetSharedModule(module_spec, module_sp,
305+
module_search_paths_ptr, old_modules,
306+
did_create_ptr, always_create);
307307
}
308308
if (module_sp)
309309
module_sp->SetPlatformFileSpec(platform_file);

lldb/source/Plugins/Platform/MacOSX/PlatformiOSSimulator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class PlatformiOSSimulator : public PlatformAppleSimulator {
5757
GetSharedModule(const lldb_private::ModuleSpec &module_spec,
5858
lldb_private::Process *process, lldb::ModuleSP &module_sp,
5959
const lldb_private::FileSpecList *module_search_paths_ptr,
60-
lldb::ModuleSP *old_module_sp_ptr,
60+
llvm::SmallVectorImpl<lldb::ModuleSP> *old_modules,
6161
bool *did_create_ptr) override;
6262

6363
uint32_t

0 commit comments

Comments
 (0)