From fd4f17f0d9efcad0604ced0f8772ffa3add3fe74 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Thu, 9 Jan 2014 00:47:54 +0000 Subject: Replace fstream use with raw_fd_ostream. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198821 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/lli/lli.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp index 102811fec7..62e232ad68 100644 --- a/tools/lli/lli.cpp +++ b/tools/lli/lli.cpp @@ -53,7 +53,6 @@ #include "llvm/Support/raw_ostream.h" #include "llvm/Transforms/Instrumentation.h" #include -#include #ifdef __CYGWIN__ #include @@ -255,7 +254,8 @@ public: std::string CacheName; if (!getCacheFilename(ModuleID, CacheName)) return; - std::ofstream outfile(CacheName.c_str(), std::ofstream::binary); + std::string errStr; + raw_fd_ostream outfile(CacheName.c_str(), errStr, sys::fs::F_Binary); outfile.write(Obj->getBufferStart(), Obj->getBufferSize()); outfile.close(); } -- cgit v1.2.3