diff options
author | Pavel Labath <labath@google.com> | 2018-05-14 14:52:47 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2018-05-14 14:52:47 +0000 |
commit | 2cb7cf8e87aa873e2a40fba2e93737556a44b477 (patch) | |
tree | 4b1dfa0afffcd63c0e7abc0a5e0dffe06141177b /lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp | |
parent | 2a6afe5f87a08e1df0bed97edf8c4ab497dd9bff (diff) | |
download | bcm5719-llvm-2cb7cf8e87aa873e2a40fba2e93737556a44b477.tar.gz bcm5719-llvm-2cb7cf8e87aa873e2a40fba2e93737556a44b477.zip |
FileSpec: Remove PathSyntax enum and use llvm version instead
Summary:
The llvm version of the enum has the same enumerators, with stlightly
different names, so this is mostly just a search&replace exercise. One
concrete benefit of this is that we can remove the function for
converting between the two enums.
To avoid typing llvm::sys::path::Style::windows everywhere I import the
enum into the FileSpec class, so it can be referenced as
FileSpec::Style::windows.
Reviewers: zturner, clayborg
Subscribers: lldb-commits
Differential Revision: https://reviews.llvm.org/D46753
llvm-svn: 332247
Diffstat (limited to 'lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp')
-rw-r--r-- | lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp b/lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp index f1ec8029e31..27cb708d383 100644 --- a/lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp +++ b/lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp @@ -193,8 +193,7 @@ Status PlatformAndroid::GetFile(const FileSpec &source, if (IsHost() || !m_remote_platform_sp) return PlatformLinux::GetFile(source, destination); - FileSpec source_spec(source.GetPath(false), false, - FileSpec::ePathSyntaxPosix); + FileSpec source_spec(source.GetPath(false), false, FileSpec::Style::posix); if (source_spec.IsRelative()) source_spec = GetRemoteWorkingDirectory().CopyByAppendingPathComponent( source_spec.GetCString(false)); @@ -239,7 +238,7 @@ Status PlatformAndroid::PutFile(const FileSpec &source, return PlatformLinux::PutFile(source, destination, uid, gid); FileSpec destination_spec(destination.GetPath(false), false, - FileSpec::ePathSyntaxPosix); + FileSpec::Style::posix); if (destination_spec.IsRelative()) destination_spec = GetRemoteWorkingDirectory().CopyByAppendingPathComponent( destination_spec.GetCString(false)); |