summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Module.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-03-19 22:22:41 +0000
committerGreg Clayton <gclayton@apple.com>2012-03-19 22:22:41 +0000
commitf9be693369134de1307db75310e71476fb76a017 (patch)
treee9f258106197426e41d0d8ea47a851d7cc5ce7f6 /lldb/source/Core/Module.cpp
parentc4aa60ffe954780976e3cef233a97446659029ba (diff)
downloadbcm5719-llvm-f9be693369134de1307db75310e71476fb76a017.tar.gz
bcm5719-llvm-f9be693369134de1307db75310e71476fb76a017.zip
<rdar://problem/11072382>
Fixed a case where the source path remappings on the module were too expensive to use when we try to verify (stat the file system) that the remapped path points to a valid file. Now we will use the lldb_private::Module path remappings (if any) when parsing the debug info without verifying that the paths exist so we don't slow down line table parsing speeds. llvm-svn: 153059
Diffstat (limited to 'lldb/source/Core/Module.cpp')
-rw-r--r--lldb/source/Core/Module.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp
index 8372b53afe3..dea7b1f4b0b 100644
--- a/lldb/source/Core/Module.cpp
+++ b/lldb/source/Core/Module.cpp
@@ -1165,3 +1165,10 @@ Module::FindSourceFile (const FileSpec &orig_spec, FileSpec &new_spec) const
return m_source_mappings.FindFile (orig_spec, new_spec);
}
+bool
+Module::RemapSourceFile (const char *path, std::string &new_path) const
+{
+ Mutex::Locker locker (m_mutex);
+ return m_source_mappings.RemapPath(path, new_path);
+}
+
OpenPOWER on IntegriCloud