From cf2048bbb3c3340e676fa166b2afd68e9ebf4e8d Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Tue, 3 Jun 2014 02:14:20 +0000 Subject: Fix -emit-codegen-only to not generate binaries llvm-svn: 210059 --- clang/lib/CodeGen/CodeGenAction.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/CodeGen/CodeGenAction.cpp') 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"); } -- cgit v1.2.3