Simplify this code so that it doesn't depend on raw_ostream being copyable.

llvm-svn: 78915
This commit is contained in:
Dan Gohman 2009-08-13 16:51:51 +00:00
parent 89ec31a26a
commit 6dd7cb5dfe
1 changed files with 3 additions and 3 deletions

View File

@ -178,9 +178,9 @@ const void* LTOCodeGenerator::compile(size_t* length, std::string& errMsg)
// generate assembly code
bool genResult = false;
{
raw_fd_ostream asmFD(raw_fd_ostream(uniqueAsmPath.c_str(),
/*Binary=*/false, /*Force=*/true,
errMsg));
raw_fd_ostream asmFD(uniqueAsmPath.c_str(),
/*Binary=*/false, /*Force=*/true,
errMsg);
formatted_raw_ostream asmFile(asmFD);
if (!errMsg.empty())
return NULL;