Moving FileManager::removeDotPaths to llvm::sys::path::remove_dots

Differential Revision: http://reviews.llvm.org/D14394

llvm-svn: 252501
This commit is contained in:
Mike Aizatsky
2015-11-09 19:12:18 +00:00
parent 1a1effc72b
commit aeb9dd92d5
5 changed files with 5 additions and 41 deletions

View File

@@ -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;