diff options
author | Greg Clayton <gclayton@apple.com> | 2015-06-02 22:43:29 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2015-06-02 22:43:29 +0000 |
commit | 5a27195b1a93fccc63129509d43cd8f943bf9ddc (patch) | |
tree | 40ef8bf349e2c20101c4ac2451479e99ff7fb4c1 /lldb/source/Host/common/FileSpec.cpp | |
parent | 677324e0b56aef7f43af3da612363f0471833f8d (diff) | |
download | bcm5719-llvm-5a27195b1a93fccc63129509d43cd8f943bf9ddc.tar.gz bcm5719-llvm-5a27195b1a93fccc63129509d43cd8f943bf9ddc.zip |
Fix LLDB so that it can correctly track down dependent shared libraries that use @rpath.
<rdar://problem/8371885>
llvm-svn: 238886
Diffstat (limited to 'lldb/source/Host/common/FileSpec.cpp')
-rw-r--r-- | lldb/source/Host/common/FileSpec.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/source/Host/common/FileSpec.cpp b/lldb/source/Host/common/FileSpec.cpp index 0e8f71acb37..1b5ec3339a6 100644 --- a/lldb/source/Host/common/FileSpec.cpp +++ b/lldb/source/Host/common/FileSpec.cpp @@ -546,6 +546,14 @@ FileSpec::Equal (const FileSpec& a, const FileSpec& b, bool full, bool remove_ba } void +FileSpec::NormalizePath () +{ + ConstString normalized_directory; + FileSpec::RemoveBackupDots(m_directory, normalized_directory); + m_directory = normalized_directory; +} + +void FileSpec::RemoveBackupDots (const ConstString &input_const_str, ConstString &result_const_str) { const char *input = input_const_str.GetCString(); |