Mercurial > projects > ldc
comparison gen/statements.cpp @ 155:7f92f477ff53 trunk
[svn r171] starting to move IR data from AST nodes into IRState; started with IrFunction
author | ChristianK |
---|---|
date | Tue, 29 Apr 2008 21:33:50 +0200 |
parents | 86d3bb8ca33e |
children | ccd07d9f2ce9 |
comparison
equal
deleted
inserted
replaced
154:5cb946f323d2 | 155:7f92f477ff53 |
---|---|
75 if (exp) | 75 if (exp) |
76 { | 76 { |
77 if (p->topfunc()->getReturnType() == llvm::Type::VoidTy) { | 77 if (p->topfunc()->getReturnType() == llvm::Type::VoidTy) { |
78 IrFunction* f = p->func(); | 78 IrFunction* f = p->func(); |
79 assert(f->type->llvmRetInPtr); | 79 assert(f->type->llvmRetInPtr); |
80 assert(f->decl->irFunc->retArg); | 80 assert(gIR->irFunc[f->decl]->retArg); |
81 | 81 |
82 if (global.params.symdebug) DtoDwarfStopPoint(loc.linnum); | 82 if (global.params.symdebug) DtoDwarfStopPoint(loc.linnum); |
83 | 83 |
84 DValue* rvar = new DVarValue(f->type->next, f->decl->irFunc->retArg, true); | 84 DValue* rvar = new DVarValue(f->type->next, gIR->irFunc[f->decl]->retArg, true); |
85 | 85 |
86 p->exps.push_back(IRExp(NULL,exp,rvar)); | 86 p->exps.push_back(IRExp(NULL,exp,rvar)); |
87 DValue* e = exp->toElem(p); | 87 DValue* e = exp->toElem(p); |
88 p->exps.pop_back(); | 88 p->exps.pop_back(); |
89 | 89 |