]> granicus.if.org Git - clang/commitdiff
Revert "[FrontendTests] Don't actually run the full compiler, parsing is sufficient."
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 22 Oct 2019 08:37:15 +0000 (08:37 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 22 Oct 2019 08:37:15 +0000 (08:37 +0000)
This reverts commit 375488.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@375489 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Frontend/OutputStreamTest.cpp

index e83b1dd97588e0419205ff35c259dda432a29db3..14537ecdc56c7c68685c2dd735980c87b03c945b 100644 (file)
@@ -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 = ParseSyntaxOnly;
+  Invocation->getFrontendOpts().ProgramAction = EmitBC;
   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 = ParseSyntaxOnly;
+  Invocation->getFrontendOpts().ProgramAction = EmitBC;
   Invocation->getTargetOpts().Triple = "i386-unknown-linux-gnu";
   CompilerInstance Compiler;