diff options
author | Chaoren Lin <chaorenl@google.com> | 2015-06-09 17:54:27 +0000 |
---|---|---|
committer | Chaoren Lin <chaorenl@google.com> | 2015-06-09 17:54:27 +0000 |
commit | 372e9067a7594afda771769d9cf5ee1d30a7c831 (patch) | |
tree | 75bf212e183c754d52e8a634bc00a1e5cc16e32e /lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp | |
parent | efba7812cc8a2e4d544a8dbe4b7b32eb86e88716 (diff) | |
download | bcm5719-llvm-372e9067a7594afda771769d9cf5ee1d30a7c831.tar.gz bcm5719-llvm-372e9067a7594afda771769d9cf5ee1d30a7c831.zip |
Rename `FileSpec::IsRelativeToCurrentWorkingDirectory` to `IsRelative`.
Summary:
`IsRelativeToCurrentWorkingDirectory` was misleading, because relative paths
are sometimes appended to other directories, not just the cwd. Plus, the new
name is shorter. Also added `IsAbsolute` for completeness.
Reviewers: clayborg, ovyalov
Reviewed By: ovyalov
Subscribers: tberghammer, lldb-commits
Differential Revision: http://reviews.llvm.org/D10262
llvm-svn: 239419
Diffstat (limited to 'lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp')
-rw-r--r-- | lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp b/lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp index 997742d2517..ed749571692 100644 --- a/lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp +++ b/lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp @@ -215,7 +215,7 @@ PlatformAndroid::GetFile (const FileSpec& source, return PlatformLinux::GetFile(source, destination); FileSpec source_spec (source.GetPath (false), false, FileSpec::ePathSyntaxPosix); - if (source_spec.IsRelativeToCurrentWorkingDirectory ()) + if (source_spec.IsRelative()) source_spec = GetRemoteWorkingDirectory ().CopyByAppendingPathComponent (source_spec.GetCString (false)); AdbClient adb (m_device_id); @@ -232,7 +232,7 @@ PlatformAndroid::PutFile (const FileSpec& source, return PlatformLinux::PutFile (source, destination, uid, gid); FileSpec destination_spec (destination.GetPath (false), false, FileSpec::ePathSyntaxPosix); - if (destination_spec.IsRelativeToCurrentWorkingDirectory ()) + if (destination_spec.IsRelative()) destination_spec = GetRemoteWorkingDirectory ().CopyByAppendingPathComponent (destination_spec.GetCString (false)); AdbClient adb (m_device_id); |