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/OutputStreamTest.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/OutputStreamTest.cpp')
-rw-r--r-- | clang/unittests/Frontend/OutputStreamTest.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/unittests/Frontend/OutputStreamTest.cpp b/clang/unittests/Frontend/OutputStreamTest.cpp index fa5d726..2618558 100644 --- a/clang/unittests/Frontend/OutputStreamTest.cpp +++ b/clang/unittests/Frontend/OutputStreamTest.cpp @@ -13,7 +13,6 @@ #include "clang/Frontend/TextDiagnosticPrinter.h" #include "clang/FrontendTool/Utils.h" #include "clang/Lex/PreprocessorOptions.h" -#include "llvm/Support/VirtualFileSystem.h" #include "gtest/gtest.h" using namespace llvm; @@ -38,7 +37,7 @@ TEST(FrontendOutputTests, TestOutputStream) { Compiler.setOutputStream(std::move(IRStream)); Compiler.setInvocation(std::move(Invocation)); - Compiler.createDiagnostics(*llvm::vfs::getRealFileSystem()); + Compiler.createDiagnostics(); bool Success = ExecuteCompilerInvocation(&Compiler); EXPECT_TRUE(Success); @@ -63,7 +62,6 @@ TEST(FrontendOutputTests, TestVerboseOutputStreamShared) { Compiler.setInvocation(std::move(Invocation)); IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); Compiler.createDiagnostics( - *llvm::vfs::getRealFileSystem(), new TextDiagnosticPrinter(llvm::nulls(), &*DiagOpts), true); Compiler.setVerboseOutputStream(VerboseStream); @@ -93,7 +91,6 @@ TEST(FrontendOutputTests, TestVerboseOutputStreamOwned) { Compiler.setInvocation(std::move(Invocation)); IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); Compiler.createDiagnostics( - *llvm::vfs::getRealFileSystem(), new TextDiagnosticPrinter(llvm::nulls(), &*DiagOpts), true); Compiler.setVerboseOutputStream(std::move(VerboseStream)); |