Mercurial > projects > ldc
diff gen/llvmhelpers.cpp @ 1018:e8c6dbcd33d1
- Fixed x86-32 C ABI for complex number return values.
- Removed unused code from the ABI class.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Sun, 01 Mar 2009 19:01:05 +0100 |
parents | 8c73ff5f69e0 |
children | 80490f65d4e1 |
line wrap: on
line diff
--- a/gen/llvmhelpers.cpp Sun Mar 01 11:04:05 2009 +0100 +++ b/gen/llvmhelpers.cpp Sun Mar 01 19:01:05 2009 +0100 @@ -392,6 +392,8 @@ // ASSIGNMENT HELPER (store this in that) ////////////////////////////////////////////////////////////////////////////////////////*/ +// is this a good approach at all ? + void DtoAssign(Loc& loc, DValue* lhs, DValue* rhs) { Logger::println("DtoAssign(...);\n"); @@ -402,7 +404,7 @@ if (t->ty == Tstruct) { if (!t->equals(t2)) { - // TODO: fix this, use 'rhs' for something + // FIXME: use 'rhs' for something !?! DtoAggrZeroInit(lhs->getLVal()); } else { @@ -476,7 +478,7 @@ DtoStore(r, l); } else if (t->iscomplex()) { - LLValue* dst; + LLValue *dst, *src; if (DLRValue* lr = lhs->isLRValue()) { dst = lr->getLVal(); rhs = DtoCastComplex(loc, rhs, lr->getLType());