Mercurial > projects > ldc
comparison gen/toir.cpp @ 1367:8026319762be
Merged DMD 1.045 !!!
author | Tomas Lindquist Olsen <tomas.l.olsen gmail com> |
---|---|
date | Sat, 16 May 2009 22:21:31 +0200 |
parents | 8d501abecd24 |
children | 229e02867307 |
comparison
equal
deleted
inserted
replaced
1366:81121ac19f61 | 1367:8026319762be |
---|---|
1630 Logger::println("new struct on heap: %s\n", newtype->toChars()); | 1630 Logger::println("new struct on heap: %s\n", newtype->toChars()); |
1631 // allocate | 1631 // allocate |
1632 LLValue* mem = DtoNew(newtype); | 1632 LLValue* mem = DtoNew(newtype); |
1633 // init | 1633 // init |
1634 TypeStruct* ts = (TypeStruct*)ntype; | 1634 TypeStruct* ts = (TypeStruct*)ntype; |
1635 if (ts->isZeroInit()) { | 1635 if (ts->isZeroInit(ts->sym->loc)) { |
1636 DtoAggrZeroInit(mem); | 1636 DtoAggrZeroInit(mem); |
1637 } | 1637 } |
1638 else { | 1638 else { |
1639 assert(ts->sym); | 1639 assert(ts->sym); |
1640 ts->sym->codegen(Type::sir); | 1640 ts->sym->codegen(Type::sir); |
2660 | 2660 |
2661 ////////////////////////////////////////////////////////////////////////////////////////// | 2661 ////////////////////////////////////////////////////////////////////////////////////////// |
2662 | 2662 |
2663 #define STUB(x) DValue *x::toElem(IRState * p) {error("Exp type "#x" not implemented: %s", toChars()); fatal(); return 0; } | 2663 #define STUB(x) DValue *x::toElem(IRState * p) {error("Exp type "#x" not implemented: %s", toChars()); fatal(); return 0; } |
2664 STUB(Expression); | 2664 STUB(Expression); |
2665 STUB(TypeDotIdExp); | |
2666 STUB(ScopeExp); | 2665 STUB(ScopeExp); |
2667 STUB(TupleExp); | 2666 STUB(TupleExp); |
2668 | 2667 |
2669 #if DMDV2 | 2668 #if DMDV2 |
2670 STUB(SymbolExp); | 2669 STUB(SymbolExp); |