From: Benjamin Kramer Date: Tue, 22 Oct 2019 08:10:51 +0000 (+0000) Subject: [FrontendTests] Don't actually run the full compiler, parsing is sufficient. X-Git-Tag: llvmorg-11-init~5978 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3ca2b17f847d0615f7e0d4fdd8040f3abfde941e;p=platform%2Fupstream%2Fllvm.git [FrontendTests] Don't actually run the full compiler, parsing is sufficient. llvm-svn: 375488 --- diff --git a/clang/unittests/Frontend/OutputStreamTest.cpp b/clang/unittests/Frontend/OutputStreamTest.cpp index 14537ec..e83b1dd 100644 --- a/clang/unittests/Frontend/OutputStreamTest.cpp +++ b/clang/unittests/Frontend/OutputStreamTest.cpp @@ -27,7 +27,7 @@ TEST(FrontendOutputTests, TestOutputStream) { "test.cc", MemoryBuffer::getMemBuffer("").release()); Invocation->getFrontendOpts().Inputs.push_back( FrontendInputFile("test.cc", Language::CXX)); - Invocation->getFrontendOpts().ProgramAction = EmitBC; + Invocation->getFrontendOpts().ProgramAction = ParseSyntaxOnly; Invocation->getTargetOpts().Triple = "i386-unknown-linux-gnu"; CompilerInstance Compiler; @@ -51,7 +51,7 @@ TEST(FrontendOutputTests, TestVerboseOutputStreamShared) { "test.cc", MemoryBuffer::getMemBuffer("invalid").release()); Invocation->getFrontendOpts().Inputs.push_back( FrontendInputFile("test.cc", Language::CXX)); - Invocation->getFrontendOpts().ProgramAction = EmitBC; + Invocation->getFrontendOpts().ProgramAction = ParseSyntaxOnly; Invocation->getTargetOpts().Triple = "i386-unknown-linux-gnu"; CompilerInstance Compiler;