Mercurial > projects > ldc
comparison gen/toobj.cpp @ 945:03d7c4aac654
SWITCHED TO LLVM 2.5 !
Applied patch from ticket #129 to compile against latest LLVM. Thanks Frits van Bommel.
Fixed implicit return by asm block at the end of a function on x86-32. Other architectures will produce an error at the moment. Adding support for new targets is fairly simple.
Fixed return calling convention for complex numbers, ST and ST(1) were switched around.
Added some testcases.
I've run a dstress test and there are no regressions. However, the runtime does not seem to compile with symbolic debug information. -O3 -release -inline works well and is what I used for the dstress run. Tango does not compile, a small workaround is needed in tango.io.digest.Digest.Digest.hexDigest. See ticket #206 .
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Sun, 08 Feb 2009 05:26:54 +0100 |
parents | 2ebac4750adb |
children | 1714836f2c0b |
comparison
equal
deleted
inserted
replaced
944:eb310635d80e | 945:03d7c4aac654 |
---|---|
253 spath.createTemporaryFileOnDisk(); | 253 spath.createTemporaryFileOnDisk(); |
254 } | 254 } |
255 Logger::println("Writing native asm to: %s\n", spath.c_str()); | 255 Logger::println("Writing native asm to: %s\n", spath.c_str()); |
256 std::string err; | 256 std::string err; |
257 { | 257 { |
258 llvm::raw_fd_ostream out(spath.c_str(), err); | 258 llvm::raw_fd_ostream out(spath.c_str(), false, err); |
259 write_asm_to_file(Target, *ir.module, out); | 259 write_asm_to_file(Target, *ir.module, out); |
260 } | 260 } |
261 | 261 |
262 // call gcc to convert assembly to object file | 262 // call gcc to convert assembly to object file |
263 if (global.params.output_o) { | 263 if (global.params.output_o) { |