<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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user