[clang] 3ca2b17 - [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:09:35 PDT 2019
Author: Benjamin Kramer
Date: 2019-10-22T08:10:51Z
New Revision: 3ca2b17f847d0615f7e0d4fdd8040f3abfde941e
URL: https://github.com/llvm/llvm-project/commit/3ca2b17f847d0615f7e0d4fdd8040f3abfde941e
DIFF: https://github.com/llvm/llvm-project/commit/3ca2b17f847d0615f7e0d4fdd8040f3abfde941e.diff
LOG: [FrontendTests] Don't actually run the full compiler, parsing is sufficient.
llvm-svn: 375488
Added:
Modified:
clang/unittests/Frontend/OutputStreamTest.cpp
Removed:
################################################################################
diff --git a/clang/unittests/Frontend/OutputStreamTest.cpp b/clang/unittests/Frontend/OutputStreamTest.cpp
index 14537ecdc56c..e83b1dd97588 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;
More information about the cfe-commits
mailing list