[llvm-commits] [llvm] r78915 - /llvm/trunk/tools/lto/LTOCodeGenerator.cpp
Dan Gohman
gohman at apple.com
Thu Aug 13 09:51:52 PDT 2009
Author: djg
Date: Thu Aug 13 11:51:51 2009
New Revision: 78915
URL: http://llvm.org/viewvc/llvm-project?rev=78915&view=rev
Log:
Simplify this code so that it doesn't depend on raw_ostream being copyable.
Modified:
llvm/trunk/tools/lto/LTOCodeGenerator.cpp
Modified: llvm/trunk/tools/lto/LTOCodeGenerator.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto/LTOCodeGenerator.cpp?rev=78915&r1=78914&r2=78915&view=diff
==============================================================================
--- llvm/trunk/tools/lto/LTOCodeGenerator.cpp (original)
+++ llvm/trunk/tools/lto/LTOCodeGenerator.cpp Thu Aug 13 11:51:51 2009
@@ -178,9 +178,9 @@
// 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;
More information about the llvm-commits
mailing list