Mercurial > projects > ldc
comparison gen/toobj.cpp @ 1542:ba2a5d2fe748
raw_fd_ostream takes a force parameter now
Build fix for LLVM 75801.
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Wed, 15 Jul 2009 20:04:42 +0200 |
parents | 1e7a09548e67 |
children | 259b031f3d22 |
comparison
equal
deleted
inserted
replaced
1541:1e7a09548e67 | 1542:ba2a5d2fe748 |
---|---|
259 spath.createTemporaryFileOnDisk(); | 259 spath.createTemporaryFileOnDisk(); |
260 } | 260 } |
261 Logger::println("Writing native asm to: %s\n", spath.c_str()); | 261 Logger::println("Writing native asm to: %s\n", spath.c_str()); |
262 std::string err; | 262 std::string err; |
263 { | 263 { |
264 llvm::raw_fd_ostream out(spath.c_str(), false, err); | 264 llvm::raw_fd_ostream out(spath.c_str(), false, true, err); |
265 if (err.empty()) | 265 if (err.empty()) |
266 { | 266 { |
267 write_asm_to_file(*gTargetMachine, *m, out); | 267 write_asm_to_file(*gTargetMachine, *m, out); |
268 } | 268 } |
269 else | 269 else |