From: Dan Gohman Date: Thu, 13 Aug 2009 16:51:51 +0000 (+0000) Subject: Simplify this code so that it doesn't depend on raw_ostream being copyable. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=815944d923345f6c327da1d23ae3078b3a4cdffd;p=oota-llvm.git 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 --- diff --git a/tools/lto/LTOCodeGenerator.cpp b/tools/lto/LTOCodeGenerator.cpp index dacf483563f..190578e2630 100644 --- a/tools/lto/LTOCodeGenerator.cpp +++ b/tools/lto/LTOCodeGenerator.cpp @@ -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;