diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2018-11-09 00:26:10 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2018-11-09 00:26:10 +0000 |
commit | f5b6d11cf226cd62af2cdd1f28c8d3da6c4dbd59 (patch) | |
tree | 3b6fa96f54efa2986815c770cbad24160118860a /llvm/unittests/Support/VirtualFileSystemTest.cpp | |
parent | 4680386c34ab5475d3ea5fdeca2735f36c8b9112 (diff) | |
download | bcm5719-llvm-f5b6d11cf226cd62af2cdd1f28c8d3da6c4dbd59.tar.gz bcm5719-llvm-f5b6d11cf226cd62af2cdd1f28c8d3da6c4dbd59.zip |
[VFS] Add "expand tilde" argument to getRealPath.
Add an optional argument to expand tildes in the path to mirror llvm's
implementation of the corresponding function.
llvm-svn: 346453
Diffstat (limited to 'llvm/unittests/Support/VirtualFileSystemTest.cpp')
-rw-r--r-- | llvm/unittests/Support/VirtualFileSystemTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/Support/VirtualFileSystemTest.cpp b/llvm/unittests/Support/VirtualFileSystemTest.cpp index 466cd117a50..3bbb5089c99 100644 --- a/llvm/unittests/Support/VirtualFileSystemTest.cpp +++ b/llvm/unittests/Support/VirtualFileSystemTest.cpp @@ -73,8 +73,8 @@ public: return std::error_code(); } // Map any symlink to "/symlink". - std::error_code getRealPath(const Twine &Path, - SmallVectorImpl<char> &Output) const override { + std::error_code getRealPath(const Twine &Path, SmallVectorImpl<char> &Output, + bool ExpandTilde) const override { auto I = FilesAndDirs.find(Path.str()); if (I == FilesAndDirs.end()) return make_error_code(llvm::errc::no_such_file_or_directory); |