Mercurial > projects > ldc
comparison gen/statements.cpp @ 1051:dc608dc33081
Make IrFuncTy a member of TypeFunction. Reset between modules compiled in the
same LDC call.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 07 Mar 2009 14:25:30 +0100 |
parents | 6bb04dbee21f |
children | b30fe7e1dbb9 |
comparison
equal
deleted
inserted
replaced
1050:32ead42679d1 | 1051:dc608dc33081 |
---|---|
90 else | 90 else |
91 { | 91 { |
92 if (global.params.symdebug) DtoDwarfStopPoint(loc.linnum); | 92 if (global.params.symdebug) DtoDwarfStopPoint(loc.linnum); |
93 | 93 |
94 // do abi specific transformations on the return value | 94 // do abi specific transformations on the return value |
95 LLValue* v = p->func()->type->fty->putRet(exp->type, exp->toElem(p)); | 95 LLValue* v = p->func()->type->fty.putRet(exp->type, exp->toElem(p)); |
96 | 96 |
97 if (Logger::enabled()) | 97 if (Logger::enabled()) |
98 Logger::cout() << "return value is '" <<*v << "'\n"; | 98 Logger::cout() << "return value is '" <<*v << "'\n"; |
99 | 99 |
100 IrFunction* f = p->func(); | 100 IrFunction* f = p->func(); |