summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2018-05-14 14:52:47 +0000
committerPavel Labath <labath@google.com>2018-05-14 14:52:47 +0000
commit2cb7cf8e87aa873e2a40fba2e93737556a44b477 (patch)
tree4b1dfa0afffcd63c0e7abc0a5e0dffe06141177b /lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
parent2a6afe5f87a08e1df0bed97edf8c4ab497dd9bff (diff)
downloadbcm5719-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/SymbolFile/PDB/SymbolFilePDB.cpp')
-rw-r--r--lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp b/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
index 409ba0570a4..06d6087f31c 100644
--- a/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
+++ b/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
@@ -343,7 +343,7 @@ bool SymbolFilePDB::ParseCompileUnitSupportFiles(
return false;
while (auto file = files->getNext()) {
- FileSpec spec(file->getFileName(), false, FileSpec::ePathSyntaxWindows);
+ FileSpec spec(file->getFileName(), false, FileSpec::Style::windows);
support_files.AppendIfUnique(spec);
}
return true;
@@ -630,7 +630,7 @@ uint32_t SymbolFilePDB::ResolveSymbolContext(
std::string source_file = compiland->getSourceFileFullPath();
if (source_file.empty())
continue;
- FileSpec this_spec(source_file, false, FileSpec::ePathSyntaxWindows);
+ FileSpec this_spec(source_file, false, FileSpec::Style::windows);
bool need_full_match = !file_spec.GetDirectory().IsEmpty();
if (FileSpec::Compare(file_spec, this_spec, need_full_match) != 0)
continue;
OpenPOWER on IntegriCloud