forked from OSchip/llvm-project
Fix build on OS X after r233061
This includes following: # Add a missing Process argument when calling GetSharedModule in DynamicLoaderDarwinKernel::KextImageInfo::LoadImageUsingMemoryModule # Fix PlatformDarwinKernel::GetSharedModule prototype llvm-svn: 233084
This commit is contained in:
parent
112b2622df
commit
667ef22920
|
@ -831,7 +831,7 @@ DynamicLoaderDarwinKernel::KextImageInfo::LoadImageUsingMemoryModule (Process *p
|
|||
ModuleSpec kext_bundle_module_spec(module_spec);
|
||||
FileSpec kext_filespec(m_name.c_str(), false);
|
||||
kext_bundle_module_spec.GetFileSpec() = kext_filespec;
|
||||
platform_sp->GetSharedModule (kext_bundle_module_spec, m_module_sp, &target.GetExecutableSearchPaths(), NULL, NULL);
|
||||
platform_sp->GetSharedModule (kext_bundle_module_spec, process, m_module_sp, &target.GetExecutableSearchPaths(), NULL, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -760,6 +760,7 @@ PlatformDarwinKernel::GetKernelsInDirectory (void *baton,
|
|||
|
||||
Error
|
||||
PlatformDarwinKernel::GetSharedModule (const ModuleSpec &module_spec,
|
||||
Process *process,
|
||||
ModuleSP &module_sp,
|
||||
const FileSpecList *module_search_paths_ptr,
|
||||
ModuleSP *old_module_sp_ptr,
|
||||
|
@ -813,7 +814,7 @@ PlatformDarwinKernel::GetSharedModule (const ModuleSpec &module_spec,
|
|||
}
|
||||
|
||||
// Else fall back to treating the file's path as an actual file path - defer to PlatformDarwin's GetSharedModule.
|
||||
return PlatformDarwin::GetSharedModule (module_spec, module_sp, module_search_paths_ptr, old_module_sp_ptr, did_create_ptr);
|
||||
return PlatformDarwin::GetSharedModule (module_spec, process, module_sp, module_search_paths_ptr, old_module_sp_ptr, did_create_ptr);
|
||||
}
|
||||
|
||||
Error
|
||||
|
|
|
@ -85,6 +85,7 @@ public:
|
|||
|
||||
lldb_private::Error
|
||||
GetSharedModule (const lldb_private::ModuleSpec &module_spec,
|
||||
lldb_private::Process *process,
|
||||
lldb::ModuleSP &module_sp,
|
||||
const lldb_private::FileSpecList *module_search_paths_ptr,
|
||||
lldb::ModuleSP *old_module_sp_ptr,
|
||||
|
|
Loading…
Reference in New Issue