aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/VirtualFileSystem.cpp
diff options
context:
space:
mode:
authorMike Aizatsky <aizatsky@chromium.org>2015-11-09 19:12:18 +0000
committerMike Aizatsky <aizatsky@chromium.org>2015-11-09 19:12:18 +0000
commitaeb9dd92d5d0f38eb031aa8498ebe269fb8bfbe7 (patch)
treef07befb2fc4cd0bb21724a78cbb6eb7bb23184ca /clang/lib/Basic/VirtualFileSystem.cpp
parent1a1effc72b750b9e3d4ec370d06523f27319a4a3 (diff)
downloadllvm-aeb9dd92d5d0f38eb031aa8498ebe269fb8bfbe7.zip
llvm-aeb9dd92d5d0f38eb031aa8498ebe269fb8bfbe7.tar.gz
llvm-aeb9dd92d5d0f38eb031aa8498ebe269fb8bfbe7.tar.bz2
Moving FileManager::removeDotPaths to llvm::sys::path::remove_dots
Differential Revision: http://reviews.llvm.org/D14394 llvm-svn: 252501
Diffstat (limited to 'clang/lib/Basic/VirtualFileSystem.cpp')
-rw-r--r--clang/lib/Basic/VirtualFileSystem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Basic/VirtualFileSystem.cpp b/clang/lib/Basic/VirtualFileSystem.cpp
index a20132b..8acf0a9 100644
--- a/clang/lib/Basic/VirtualFileSystem.cpp
+++ b/clang/lib/Basic/VirtualFileSystem.cpp
@@ -499,7 +499,7 @@ bool InMemoryFileSystem::addFile(const Twine &P, time_t ModificationTime,
(void)EC;
if (useNormalizedPaths())
- FileManager::removeDotPaths(Path, /*RemoveDotDot=*/true);
+ llvm::sys::path::remove_dots(Path, /*remove_dot_dot=*/true);
if (Path.empty())
return false;
@@ -572,7 +572,7 @@ lookupInMemoryNode(const InMemoryFileSystem &FS, detail::InMemoryDirectory *Dir,
(void)EC;
if (FS.useNormalizedPaths())
- FileManager::removeDotPaths(Path, /*RemoveDotDot=*/true);
+ llvm::sys::path::remove_dots(Path, /*remove_dot_dot=*/true);
if (Path.empty())
return Dir;