summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenAction.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-06-03 02:14:20 +0000
committerAlp Toker <alp@nuanti.com>2014-06-03 02:14:20 +0000
commitcf2048bbb3c3340e676fa166b2afd68e9ebf4e8d (patch)
tree5cdd1dbf3da73759a2c0b1e8c83eee8b53274dc9 /clang/lib/CodeGen/CodeGenAction.cpp
parent0e64e0d4fd7c5ae535ba8805c21146a9414f19b3 (diff)
downloadbcm5719-llvm-cf2048bbb3c3340e676fa166b2afd68e9ebf4e8d.tar.gz
bcm5719-llvm-cf2048bbb3c3340e676fa166b2afd68e9ebf4e8d.zip
Fix -emit-codegen-only to not generate binaries
llvm-svn: 210059
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenAction.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp
index d337fa7c431..88f02b4e6a0 100644
--- a/clang/lib/CodeGen/CodeGenAction.cpp
+++ b/clang/lib/CodeGen/CodeGenAction.cpp
@@ -568,6 +568,7 @@ static raw_ostream *GetOutputStream(CompilerInstance &CI,
case Backend_EmitNothing:
return nullptr;
case Backend_EmitMCNull:
+ return new raw_null_ostream();
case Backend_EmitObj:
return CI.createDefaultOutputFile(true, InFile, "o");
}
OpenPOWER on IntegriCloud