summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-13 16:51:51 +0000
committerDan Gohman <gohman@apple.com>2009-08-13 16:51:51 +0000
commit6dd7cb5dfe90cd122cc7e1cd627fd389d9c75691 (patch)
tree651d7b24c9c35e26a0496969aa9832877bf904bd
parent89ec31a26abc5f8e0c8b5ad40e27b772cb42e15a (diff)
downloadbcm5719-llvm-6dd7cb5dfe90cd122cc7e1cd627fd389d9c75691.tar.gz
bcm5719-llvm-6dd7cb5dfe90cd122cc7e1cd627fd389d9c75691.zip
Simplify this code so that it doesn't depend on raw_ostream being copyable.
llvm-svn: 78915
-rw-r--r--llvm/tools/lto/LTOCodeGenerator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/tools/lto/LTOCodeGenerator.cpp b/llvm/tools/lto/LTOCodeGenerator.cpp
index dacf483563f..190578e2630 100644
--- a/llvm/tools/lto/LTOCodeGenerator.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud