<rdar://problem/8196933>

Use the metadata in the dSYM bundle Info.plist to remap source paths when they keys are available.

llvm-svn: 152836
This commit is contained in:
Greg Clayton
2012-03-15 21:01:31 +00:00
parent e7fd58006d
commit d804d28556
12 changed files with 232 additions and 65 deletions

View File

@@ -372,6 +372,21 @@ ModuleList::FindTypes (const SymbolContext& sc, const ConstString &name, bool ap
return total_matches;
}
bool
ModuleList::FindSourceFile (const FileSpec &orig_spec, FileSpec &new_spec) const
{
Mutex::Locker locker(m_modules_mutex);
collection::const_iterator pos, end = m_modules.end();
for (pos = m_modules.begin(); pos != end; ++pos)
{
if ((*pos)->FindSourceFile (orig_spec, new_spec))
return true;
}
return false;
}
ModuleSP
ModuleList::FindFirstModule (const ModuleSpec &module_spec)
{