Mercurial > projects > ldc
comparison gen/toir.cpp @ 667:9c48213cfd96
Add DotTypeExp
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 07 Oct 2008 20:19:19 +0200 |
parents | 0d934394ada1 |
children | 96e425004a68 |
comparison
equal
deleted
inserted
replaced
666:0d934394ada1 | 667:9c48213cfd96 |
---|---|
2436 return new DImValue(type, DtoBoolean(loc, e1->toElem(p))); | 2436 return new DImValue(type, DtoBoolean(loc, e1->toElem(p))); |
2437 } | 2437 } |
2438 | 2438 |
2439 ////////////////////////////////////////////////////////////////////////////////////////// | 2439 ////////////////////////////////////////////////////////////////////////////////////////// |
2440 | 2440 |
2441 DValue* DotTypeExp::toElem(IRState* p) | |
2442 { | |
2443 Type* t = sym->getType(); | |
2444 assert(t); | |
2445 assert(t == e1->type && t == type); | |
2446 return e1->toElem(p); | |
2447 } | |
2448 | |
2449 ////////////////////////////////////////////////////////////////////////////////////////// | |
2450 | |
2441 #define STUB(x) DValue *x::toElem(IRState * p) {error("Exp type "#x" not implemented: %s", toChars()); fatal(); return 0; } | 2451 #define STUB(x) DValue *x::toElem(IRState * p) {error("Exp type "#x" not implemented: %s", toChars()); fatal(); return 0; } |
2442 STUB(Expression); | 2452 STUB(Expression); |
2443 STUB(DotTypeExp); | |
2444 STUB(TypeDotIdExp); | 2453 STUB(TypeDotIdExp); |
2445 STUB(ScopeExp); | 2454 STUB(ScopeExp); |
2446 STUB(TypeExp); | 2455 STUB(TypeExp); |
2447 STUB(TupleExp); | 2456 STUB(TupleExp); |
2448 | 2457 |