Mercurial > projects > ldc
comparison gen/toobj.cpp @ 565:3c07287765bc
Fixed toobj.cpp to compile with latest LLVM, seems a method overload was removed recently.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Sun, 31 Aug 2008 18:38:16 +0200 |
parents | a0b0676e787d |
children | 7824c21a58e3 |
comparison
equal
deleted
inserted
replaced
564:4b1b0d262c9a | 565:3c07287765bc |
---|---|
190 | 190 |
191 // disassemble ? | 191 // disassemble ? |
192 if (global.params.disassemble) { | 192 if (global.params.disassemble) { |
193 Logger::println("Writing LLVM asm to: %s\n", llfile->name->toChars()); | 193 Logger::println("Writing LLVM asm to: %s\n", llfile->name->toChars()); |
194 std::ofstream aos(llpath.c_str()); | 194 std::ofstream aos(llpath.c_str()); |
195 ir.module->print(aos); | 195 ir.module->print(aos, NULL); |
196 } | 196 } |
197 | 197 |
198 delete ir.module; | 198 delete ir.module; |
199 gTargetData = 0; | 199 gTargetData = 0; |
200 gIR = NULL; | 200 gIR = NULL; |