mirror of
https://github.com/intel/llvm.git
synced 2026-01-18 07:57:36 +08:00
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
This commit is contained in:
@@ -44,7 +44,7 @@ static const uint32_t uuid_bytes = 20;
|
||||
static const size_t module_size = 5602;
|
||||
|
||||
static FileSpec GetDummyRemotePath() {
|
||||
FileSpec fs("/", false, FileSpec::ePathSyntaxPosix);
|
||||
FileSpec fs("/", false, FileSpec::Style::posix);
|
||||
fs.AppendPathComponent(dummy_remote_dir);
|
||||
fs.AppendPathComponent(module_name);
|
||||
return fs;
|
||||
|
||||
Reference in New Issue
Block a user