Mercurial > projects > ldc
comparison gen/toir.cpp @ 864:2025c9a24efd
Adjust error message for missing toConstExp to include 'is not a const exp'.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 20 Dec 2008 09:13:44 +0100 |
parents | 7edce7e58ab1 |
children | af7a6faf9406 |
comparison
equal
deleted
inserted
replaced
861:fa019f0ce718 | 864:2025c9a24efd |
---|---|
2710 | 2710 |
2711 #if DMDV2 | 2711 #if DMDV2 |
2712 STUB(SymbolExp); | 2712 STUB(SymbolExp); |
2713 #endif | 2713 #endif |
2714 | 2714 |
2715 #define CONSTSTUB(x) LLConstant* x::toConstElem(IRState * p) {error("const Exp type "#x" not implemented: '%s' type: '%s'", toChars(), type->toChars()); fatal(); return NULL; } | 2715 #define CONSTSTUB(x) LLConstant* x::toConstElem(IRState * p) {error("non-const expression '%s' or const Exp type "#x" not implemented", toChars()); fatal(); return NULL; } |
2716 CONSTSTUB(Expression); | 2716 CONSTSTUB(Expression); |
2717 CONSTSTUB(GEPExp); | 2717 CONSTSTUB(GEPExp); |
2718 CONSTSTUB(SliceExp); | 2718 CONSTSTUB(SliceExp); |
2719 CONSTSTUB(IndexExp); | 2719 CONSTSTUB(IndexExp); |
2720 CONSTSTUB(AssocArrayLiteralExp); | 2720 CONSTSTUB(AssocArrayLiteralExp); |