Fix -emit-codegen-only to not generate binaries

llvm-svn: 210059
This commit is contained in:
Alp Toker
2014-06-03 02:14:20 +00:00
parent 0e64e0d4fd
commit cf2048bbb3
2 changed files with 8 additions and 0 deletions

View File

@@ -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");
}