aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/CommandLineTest.cpp
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2022-09-09 18:23:52 +0700
committerSerge Pavlov <sepavloff@gmail.com>2022-09-09 18:24:45 +0700
commit7b9fae05b4d0d3184ffc340e90d06a75e3cba2de (patch)
tree5c56ddc19097966217590c99722b76a9310e5113 /llvm/unittests/Support/CommandLineTest.cpp
parent4ab77d16776ac819dfa1de3b5dd56dc6da036108 (diff)
downloadllvm-7b9fae05b4d0d3184ffc340e90d06a75e3cba2de.zip
llvm-7b9fae05b4d0d3184ffc340e90d06a75e3cba2de.tar.gz
llvm-7b9fae05b4d0d3184ffc340e90d06a75e3cba2de.tar.bz2
[Clang] Use virtual FS in processing config files
Clang has support of virtual file system for the purpose of testing, but treatment of config files did not use it. This change enables VFS in it as well. Differential Revision: https://reviews.llvm.org/D132867
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
-rw-r--r--llvm/unittests/Support/CommandLineTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/unittests/Support/CommandLineTest.cpp b/llvm/unittests/Support/CommandLineTest.cpp
index 41d483a5..4fd037e 100644
--- a/llvm/unittests/Support/CommandLineTest.cpp
+++ b/llvm/unittests/Support/CommandLineTest.cpp
@@ -1126,7 +1126,8 @@ TEST(CommandLineTest, ReadConfigFile) {
llvm::BumpPtrAllocator A;
llvm::StringSaver Saver(A);
- bool Result = llvm::cl::readConfigFile(ConfigFile.path(), Saver, Argv);
+ bool Result = llvm::cl::readConfigFile(ConfigFile.path(), Saver, Argv,
+ *llvm::vfs::getRealFileSystem());
EXPECT_TRUE(Result);
EXPECT_EQ(Argv.size(), 13U);