FileSpec: Remove PathSyntax enum and use llvm version instead
authorPavel Labath <labath@google.com>
Mon, 14 May 2018 14:52:47 +0000 (14:52 +0000)
committerPavel Labath <labath@google.com>
Mon, 14 May 2018 14:52:47 +0000 (14:52 +0000)
commit2cb7cf8e87aa873e2a40fba2e93737556a44b477
tree4b1dfa0afffcd63c0e7abc0a5e0dffe06141177b
parent2a6afe5f87a08e1df0bed97edf8c4ab497dd9bff
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
lldb/include/lldb/Utility/FileSpec.h
lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp
lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
lldb/source/Utility/FileSpec.cpp
lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp
lldb/unittests/Target/ModuleCacheTest.cpp
lldb/unittests/Utility/FileSpecTest.cpp