aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2019-10-22 08:10:51 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2019-10-22 08:10:51 +0000
commit327f79bc69360fadf014aecc5e81bc706f9693b6 (patch)
tree90d8a523d4a1a720c42d2ed79e66ddf2132f5b7a
parent25e98e8a3e75a63761ea270fef0a568831866d13 (diff)
downloadclang-327f79bc69360fadf014aecc5e81bc706f9693b6.tar.gz
[FrontendTests] Don't actually run the full compiler, parsing is sufficient.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@375488 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--unittests/Frontend/OutputStreamTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/Frontend/OutputStreamTest.cpp b/unittests/Frontend/OutputStreamTest.cpp
index 14537ecdc5..e83b1dd975 100644
--- a/unittests/Frontend/OutputStreamTest.cpp
+++ b/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;