Changeset 666:0d934394ada1
- Timestamp:
- 10/07/08 12:41:00
(3 months ago)
- Author:
- Christian Kamm <kamm incasoftware de>
- branch:
- default
- Message:
Implement BoolExp?.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r659 |
r666 |
|
| 2432 | 2432 | ////////////////////////////////////////////////////////////////////////////////////////// |
|---|
| 2433 | 2433 | |
|---|
| | 2434 | DValue* BoolExp::toElem(IRState* p) |
|---|
| | 2435 | { |
|---|
| | 2436 | return new DImValue(type, DtoBoolean(loc, e1->toElem(p))); |
|---|
| | 2437 | } |
|---|
| | 2438 | |
|---|
| | 2439 | ////////////////////////////////////////////////////////////////////////////////////////// |
|---|
| | 2440 | |
|---|
| 2434 | 2441 | #define STUB(x) DValue *x::toElem(IRState * p) {error("Exp type "#x" not implemented: %s", toChars()); fatal(); return 0; } |
|---|
| 2435 | 2442 | STUB(Expression); |
|---|
| … | … | |
| 2438 | 2445 | STUB(ScopeExp); |
|---|
| 2439 | 2446 | STUB(TypeExp); |
|---|
| 2440 | | STUB(BoolExp); |
|---|
| 2441 | 2447 | STUB(TupleExp); |
|---|
| 2442 | 2448 | |
|---|