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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78915 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2009-08-13 16:51:51 +00:00
parent 2780609a47
commit 815944d923

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(),
raw_fd_ostream asmFD(uniqueAsmPath.c_str(),
/*Binary=*/false, /*Force=*/true,
errMsg));
errMsg);
formatted_raw_ostream asmFile(asmFD);
if (!errMsg.empty())
return NULL;