summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Module.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-03-15 21:01:31 +0000
committerGreg Clayton <gclayton@apple.com>2012-03-15 21:01:31 +0000
commitd804d285567f7833b2fb3d14eceac8dbeaae8f87 (patch)
tree017767f3324050b5b6b1f9896f7f2f9dfe021eb8 /lldb/source/Core/Module.cpp
parente7fd58006d5ef235f5922f2613640f159ec61acb (diff)
downloadbcm5719-llvm-d804d285567f7833b2fb3d14eceac8dbeaae8f87.tar.gz
bcm5719-llvm-d804d285567f7833b2fb3d14eceac8dbeaae8f87.zip
<rdar://problem/8196933>
Use the metadata in the dSYM bundle Info.plist to remap source paths when they keys are available. llvm-svn: 152836
Diffstat (limited to 'lldb/source/Core/Module.cpp')
-rw-r--r--lldb/source/Core/Module.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp
index f2c32c57ec9..8372b53afe3 100644
--- a/lldb/source/Core/Module.cpp
+++ b/lldb/source/Core/Module.cpp
@@ -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);
+}
+
OpenPOWER on IntegriCloud