diff options
author | Sylvestre Ledru <sylvestre@debian.org> | 2024-11-21 13:04:30 +0100 |
---|---|---|
committer | Sylvestre Ledru <sylvestre@debian.org> | 2024-11-21 13:04:30 +0100 |
commit | a1153cd6fedd4c906a9840987934ca4712e34cb2 (patch) | |
tree | 5b267500546cc06032b49c0153f6aa1e92cbb74c /clang/unittests/Frontend/CodeGenActionTest.cpp | |
parent | 0b06301a1d839eb5f73559f6c3daf9049c34f3af (diff) | |
download | llvm-a1153cd6fedd4c906a9840987934ca4712e34cb2.zip llvm-a1153cd6fedd4c906a9840987934ca4712e34cb2.tar.gz llvm-a1153cd6fedd4c906a9840987934ca4712e34cb2.tar.bz2 |
Revert "[NFC] Explicitly pass a VFS when creating DiagnosticsEngine (#115852)"
Reverted for causing:
https://github.com/llvm/llvm-project/issues/117145
This reverts commit bdd10d9d249bd1c2a45e3de56a5accd97e953458.
Diffstat (limited to 'clang/unittests/Frontend/CodeGenActionTest.cpp')
-rw-r--r-- | clang/unittests/Frontend/CodeGenActionTest.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/unittests/Frontend/CodeGenActionTest.cpp b/clang/unittests/Frontend/CodeGenActionTest.cpp index d855302..a6520910 100644 --- a/clang/unittests/Frontend/CodeGenActionTest.cpp +++ b/clang/unittests/Frontend/CodeGenActionTest.cpp @@ -16,7 +16,6 @@ #include "clang/Frontend/CompilerInstance.h" #include "clang/Lex/PreprocessorOptions.h" #include "llvm/Support/FormatVariadic.h" -#include "llvm/Support/VirtualFileSystem.h" #include "gtest/gtest.h" using namespace llvm; @@ -53,7 +52,7 @@ TEST(CodeGenTest, TestNullCodeGen) { Invocation->getTargetOpts().Triple = "i386-unknown-linux-gnu"; CompilerInstance Compiler; Compiler.setInvocation(std::move(Invocation)); - Compiler.createDiagnostics(*llvm::vfs::getRealFileSystem()); + Compiler.createDiagnostics(); EXPECT_TRUE(Compiler.hasDiagnostics()); std::unique_ptr<FrontendAction> Act(new NullCodeGenAction); @@ -71,7 +70,7 @@ TEST(CodeGenTest, CodeGenFromIRMemBuffer) { Invocation->getTargetOpts().Triple = "i386-unknown-linux-gnu"; CompilerInstance Compiler; Compiler.setInvocation(std::move(Invocation)); - Compiler.createDiagnostics(*llvm::vfs::getRealFileSystem()); + Compiler.createDiagnostics(); EXPECT_TRUE(Compiler.hasDiagnostics()); EmitLLVMOnlyAction Action; @@ -102,7 +101,7 @@ TEST(CodeGenTest, DebugInfoCWDCodeGen) { SmallString<256> IRBuffer; Compiler.setOutputStream(std::make_unique<raw_svector_ostream>(IRBuffer)); Compiler.setInvocation(std::move(Invocation)); - Compiler.createDiagnostics(*VFS); + Compiler.createDiagnostics(); Compiler.createFileManager(std::move(VFS)); EmitLLVMAction Action; |