diff options
| author | Lang Hames <lhames@gmail.com> | 2014-01-09 00:47:54 +0000 |
|---|---|---|
| committer | Lang Hames <lhames@gmail.com> | 2014-01-09 00:47:54 +0000 |
| commit | eecd2dc9545d9d14899bddc4a6cbc974fe2109d1 (patch) | |
| tree | fab4a24b9f85d98c30d232322020245286748206 /llvm/tools/lli | |
| parent | 099d4ee12587cf9a6bb44ceabdd8f9605f86853a (diff) | |
| download | bcm5719-llvm-eecd2dc9545d9d14899bddc4a6cbc974fe2109d1.tar.gz bcm5719-llvm-eecd2dc9545d9d14899bddc4a6cbc974fe2109d1.zip | |
Replace fstream use with raw_fd_ostream.
llvm-svn: 198821
Diffstat (limited to 'llvm/tools/lli')
| -rw-r--r-- | llvm/tools/lli/lli.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/lli/lli.cpp b/llvm/tools/lli/lli.cpp index 102811fec7c..62e232ad68e 100644 --- a/llvm/tools/lli/lli.cpp +++ b/llvm/tools/lli/lli.cpp @@ -53,7 +53,6 @@ #include "llvm/Support/raw_ostream.h" #include "llvm/Transforms/Instrumentation.h" #include <cerrno> -#include <fstream> #ifdef __CYGWIN__ #include <cygwin/version.h> @@ -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(); } |

