Mercurial > projects > ldc
comparison gen/toir.cpp @ 860:7edce7e58ab1
Add more toConstElem stubs to get better error messages.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Thu, 18 Dec 2008 07:59:03 +0100 |
parents | a719f2ca3e92 |
children | 2025c9a24efd |
comparison
equal
deleted
inserted
replaced
859:a719f2ca3e92 | 860:7edce7e58ab1 |
---|---|
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("const Exp type "#x" not implemented: '%s' type: '%s'", toChars(), type->toChars()); fatal(); return NULL; } |
2716 CONSTSTUB(Expression); | 2716 CONSTSTUB(Expression); |
2717 CONSTSTUB(GEPExp); | |
2718 CONSTSTUB(SliceExp); | |
2719 CONSTSTUB(IndexExp); | |
2717 CONSTSTUB(AssocArrayLiteralExp); | 2720 CONSTSTUB(AssocArrayLiteralExp); |
2718 | 2721 |
2719 unsigned Type::totym() { return 0; } | 2722 unsigned Type::totym() { return 0; } |
2720 | 2723 |
2721 type * Type::toCtype() | 2724 type * Type::toCtype() |