Mercurial > projects > ldc
comparison gen/toir.cpp @ 802:28ce72c60a21
Fixed some problems with the addZeros forward declarations having type mismatches.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Sat, 29 Nov 2008 20:57:52 +0100 |
parents | 340acf1535d0 |
children | 69a5e4a6fc0f |
comparison
equal
deleted
inserted
replaced
801:c8d9b30a0dc2 | 802:28ce72c60a21 |
---|---|
2275 return DtoConstSlice(DtoConstSize_t(elements->dim), globalstorePtr); | 2275 return DtoConstSlice(DtoConstSize_t(elements->dim), globalstorePtr); |
2276 } | 2276 } |
2277 | 2277 |
2278 ////////////////////////////////////////////////////////////////////////////////////////// | 2278 ////////////////////////////////////////////////////////////////////////////////////////// |
2279 | 2279 |
2280 void addZeros(std::vector<llvm::Value*>& inits, unsigned pos, unsigned offset); | |
2281 | |
2282 DValue* StructLiteralExp::toElem(IRState* p) | 2280 DValue* StructLiteralExp::toElem(IRState* p) |
2283 { | 2281 { |
2284 Logger::print("StructLiteralExp::toElem: %s | %s\n", toChars(), type->toChars()); | 2282 Logger::print("StructLiteralExp::toElem: %s | %s\n", toChars(), type->toChars()); |
2285 LOG_SCOPE; | 2283 LOG_SCOPE; |
2286 | 2284 |
2359 // return as a var | 2357 // return as a var |
2360 return new DVarValue(type, mem); | 2358 return new DVarValue(type, mem); |
2361 } | 2359 } |
2362 | 2360 |
2363 ////////////////////////////////////////////////////////////////////////////////////////// | 2361 ////////////////////////////////////////////////////////////////////////////////////////// |
2364 | |
2365 void addZeros(std::vector<llvm::Constant*>& inits, unsigned pos, unsigned offset); | |
2366 | 2362 |
2367 LLConstant* StructLiteralExp::toConstElem(IRState* p) | 2363 LLConstant* StructLiteralExp::toConstElem(IRState* p) |
2368 { | 2364 { |
2369 Logger::print("StructLiteralExp::toConstElem: %s | %s\n", toChars(), type->toChars()); | 2365 Logger::print("StructLiteralExp::toConstElem: %s | %s\n", toChars(), type->toChars()); |
2370 LOG_SCOPE; | 2366 LOG_SCOPE; |