[clang] 2108a97 - Revert "[FrontendTests] Don't actually run the full compiler, parsing is sufficient."

Benjamin Kramer via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 22 01:36:09 PDT 2019


Author: Benjamin Kramer
Date: 2019-10-22T08:37:15Z
New Revision: 2108a974f78afe5b098758e1a517cd159dcae95c

URL: https://github.com/llvm/llvm-project/commit/2108a974f78afe5b098758e1a517cd159dcae95c
DIFF: https://github.com/llvm/llvm-project/commit/2108a974f78afe5b098758e1a517cd159dcae95c.diff

LOG: Revert "[FrontendTests] Don't actually run the full compiler, parsing is sufficient."

This reverts commit 375488.

llvm-svn: 375489

Added: 
    

Modified: 
    clang/unittests/Frontend/OutputStreamTest.cpp

Removed: 
    


################################################################################
diff  --git a/clang/unittests/Frontend/OutputStreamTest.cpp b/clang/unittests/Frontend/OutputStreamTest.cpp
index e83b1dd97588..14537ecdc56c 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 = 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;
 


        


More information about the cfe-commits mailing list