summaryrefslogtreecommitdiff
path: root/tools
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
commit815944d923345f6c327da1d23ae3078b3a4cdffd (patch)
tree237e65e218e279d18e0e2af3432946906226ab0d /tools
parent2780609a47b7df09b23113a984b258200eae9515 (diff)
downloadllvm-815944d923345f6c327da1d23ae3078b3a4cdffd.tar.gz
llvm-815944d923345f6c327da1d23ae3078b3a4cdffd.tar.bz2
llvm-815944d923345f6c327da1d23ae3078b3a4cdffd.tar.xz
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
Diffstat (limited to 'tools')
-rw-r--r--tools/lto/LTOCodeGenerator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/lto/LTOCodeGenerator.cpp b/tools/lto/LTOCodeGenerator.cpp
index dacf483563..190578e263 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;