linux: add missing arguments to FindFirstModuleForFileSpec

Specifying the new arguments as NULL is appropriate for now as this is
backwards-compatible with the old invocation. 

llvm-svn: 129118
This commit is contained in:
Stephen Wilson 2011-04-08 02:00:23 +00:00
parent 7e51b4640f
commit 3f588d3f50
1 changed files with 3 additions and 2 deletions

View File

@ -278,7 +278,8 @@ DynamicLoaderLinuxDYLD::RefreshModules()
for (I = m_rendezvous.unloaded_begin(); I != E; ++I)
{
FileSpec file(I->path.c_str(), true);
ModuleSP module_sp = loaded_modules.FindFirstModuleForFileSpec(file);
ModuleSP module_sp =
loaded_modules.FindFirstModuleForFileSpec(file, NULL, NULL);
if (!module_sp.empty())
old_modules.Append(module_sp);
}
@ -368,7 +369,7 @@ DynamicLoaderLinuxDYLD::LoadModuleAtAddress(const FileSpec &file, addr_t base_ad
ModuleList &modules = target.GetImages();
ModuleSP module_sp;
if ((module_sp = modules.FindFirstModuleForFileSpec(file)))
if ((module_sp = modules.FindFirstModuleForFileSpec(file, NULL, NULL)))
{
UpdateLoadedSections(module_sp, base_addr);
}