mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-29 23:51:26 +00:00
Moving FileManager::removeDotPaths to llvm::sys::path::remove_dots
Differential Revision: http://reviews.llvm.org/D14394 llvm-svn: 252501
This commit is contained in:
1 parent
1a1effc72b
commit
aeb9dd92d5
5 files changed
+5
-41
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user