diff options
author | Oleksiy Vyalov <ovyalov@google.com> | 2015-05-29 22:54:45 +0000 |
---|---|---|
committer | Oleksiy Vyalov <ovyalov@google.com> | 2015-05-29 22:54:45 +0000 |
commit | 32a9da5668d3eb9f34930bf37b67258996a70188 (patch) | |
tree | 8f5ab5a7e5481fc036ebde86ba929ada4ceffd43 /lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp | |
parent | 817f40a7fa1c294b0069696b0148125934b358bd (diff) | |
download | bcm5719-llvm-32a9da5668d3eb9f34930bf37b67258996a70188.tar.gz bcm5719-llvm-32a9da5668d3eb9f34930bf37b67258996a70188.zip |
Use FileSpec::IsRelativeToCurrentWorkingDirectory instead of llvm::sys::path::is_relative in PlatformAndroid::GetFile.
http://reviews.llvm.org/D10141
llvm-svn: 238624
Diffstat (limited to 'lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp')
-rw-r--r-- | lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp b/lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp index 898d13e2ebc..58cc47e387b 100644 --- a/lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp +++ b/lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp @@ -13,7 +13,6 @@ #include "lldb/Core/Log.h" #include "lldb/Core/PluginManager.h" #include "lldb/Host/HostInfo.h" -#include "llvm/Support/Path.h" #include "Utility/UriParser.h" // Project includes @@ -215,13 +214,9 @@ PlatformAndroid::GetFile (const FileSpec& source, if (IsHost() || !m_remote_platform_sp) return PlatformLinux::GetFile(source, destination); - FileSpec source_spec (source); - const auto source_path = source_spec.GetPath (false); - if (llvm::sys::path::is_relative (source_path.c_str ())) - { - source_spec = GetRemoteWorkingDirectory (); - source_spec.AppendPathComponent (source_path.c_str ()); - } + FileSpec source_spec (source.GetPath (false), false, FileSpec::ePathSyntaxPosix); + if (source_spec.IsRelativeToCurrentWorkingDirectory ()) + source_spec = GetRemoteWorkingDirectory ().CopyByAppendingPathComponent (source_spec.GetCString (false)); AdbClient adb (m_device_id); return adb.PullFile (source_spec, destination); |