Mercurial > projects > ldc
comparison gen/tollvm.c @ 49:e5c4bece7fa1 trunk
[svn r53] added basic support for delegate literals. if you access outer variables you get a broken module
author | lindquist |
---|---|
date | Fri, 19 Oct 2007 17:43:46 +0200 |
parents | 8b0e809563df |
children | 6fcc08a4d406 |
comparison
equal
deleted
inserted
replaced
48:4d171915a77b | 49:e5c4bece7fa1 |
---|---|
273 paramvec.push_back(thisty); | 273 paramvec.push_back(thisty); |
274 usesthis = true; | 274 usesthis = true; |
275 } | 275 } |
276 else | 276 else |
277 assert(0); | 277 assert(0); |
278 } | |
279 else if (fdecl->isNested()) { | |
280 paramvec.push_back(llvm::PointerType::get(llvm::Type::Int8Ty)); | |
281 usesthis = true; | |
278 } | 282 } |
279 | 283 |
280 size_t n = Argument::dim(f->parameters); | 284 size_t n = Argument::dim(f->parameters); |
281 for (int i=0; i < n; ++i) { | 285 for (int i=0; i < n; ++i) { |
282 Argument* arg = Argument::getNth(f->parameters, i); | 286 Argument* arg = Argument::getNth(f->parameters, i); |