<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

@@ -127,6 +127,7 @@ Module::Module (const ModuleSpec &module_spec) :
m_objfile_sp (),
m_symfile_ap (),
m_ast (),
m_source_mappings (),
m_did_load_objfile (false),
m_did_load_symbol_vendor (false),
m_did_parse_uuid (false),
@@ -168,6 +169,7 @@ Module::Module(const FileSpec& file_spec,
m_objfile_sp (),
m_symfile_ap (),
m_ast (),
m_source_mappings (),
m_did_load_objfile (false),
m_did_load_symbol_vendor (false),
m_did_parse_uuid (false),
@@ -1156,3 +1158,10 @@ Module::MatchesModuleSpec (const ModuleSpec &module_ref)
return true;
}
bool
Module::FindSourceFile (const FileSpec &orig_spec, FileSpec &new_spec) const
{
Mutex::Locker locker (m_mutex);
return m_source_mappings.FindFile (orig_spec, new_spec);
}