Mercurial > projects > ldc
comparison gen/toir.cpp @ 340:351c0077d0b3 trunk
[svn r361] Removed some dead code.
author | lindquist |
---|---|
date | Sun, 13 Jul 2008 02:04:25 +0200 |
parents | 385a18242485 |
children | e20ce6d8d374 |
comparison
equal
deleted
inserted
replaced
339:385a18242485 | 340:351c0077d0b3 |
---|---|
2700 } | 2700 } |
2701 | 2701 |
2702 ////////////////////////////////////////////////////////////////////////////////////////// | 2702 ////////////////////////////////////////////////////////////////////////////////////////// |
2703 | 2703 |
2704 #define STUB(x) DValue *x::toElem(IRState * p) {error("Exp type "#x" not implemented: %s", toChars()); fatal(); return 0; } | 2704 #define STUB(x) DValue *x::toElem(IRState * p) {error("Exp type "#x" not implemented: %s", toChars()); fatal(); return 0; } |
2705 //STUB(IdentityExp); | |
2706 //STUB(CondExp); | |
2707 //STUB(EqualExp); | |
2708 //STUB(InExp); | |
2709 //STUB(CmpExp); | |
2710 //STUB(AndAndExp); | |
2711 //STUB(OrOrExp); | |
2712 //STUB(AndExp); | |
2713 //STUB(AndAssignExp); | |
2714 //STUB(OrExp); | |
2715 //STUB(OrAssignExp); | |
2716 //STUB(XorExp); | |
2717 //STUB(XorAssignExp); | |
2718 //STUB(ShrExp); | |
2719 //STUB(ShrAssignExp); | |
2720 //STUB(ShlExp); | |
2721 //STUB(ShlAssignExp); | |
2722 //STUB(UshrExp); | |
2723 //STUB(UshrAssignExp); | |
2724 //STUB(DivExp); | |
2725 //STUB(DivAssignExp); | |
2726 //STUB(MulExp); | |
2727 //STUB(MulAssignExp); | |
2728 //STUB(ModExp); | |
2729 //STUB(ModAssignExp); | |
2730 //STUB(CatExp); | |
2731 //STUB(CatAssignExp); | |
2732 //STUB(AddExp); | |
2733 //STUB(AddAssignExp); | |
2734 STUB(Expression); | 2705 STUB(Expression); |
2735 //STUB(MinExp); | |
2736 //STUB(MinAssignExp); | |
2737 //STUB(PostExp); | |
2738 //STUB(NullExp); | |
2739 //STUB(ThisExp); | |
2740 //STUB(CallExp); | |
2741 STUB(DotTypeExp); | 2706 STUB(DotTypeExp); |
2742 STUB(TypeDotIdExp); | 2707 STUB(TypeDotIdExp); |
2743 //STUB(DotVarExp); | |
2744 //STUB(AssertExp); | |
2745 //STUB(FuncExp); | |
2746 //STUB(DelegateExp); | |
2747 //STUB(VarExp); | |
2748 //STUB(DeclarationExp); | |
2749 //STUB(NewExp); | |
2750 //STUB(SymOffExp); | |
2751 STUB(ScopeExp); | 2708 STUB(ScopeExp); |
2752 //STUB(AssignExp); | |
2753 | |
2754 STUB(TypeExp); | 2709 STUB(TypeExp); |
2755 //STUB(RealExp); | |
2756 //STUB(ComplexExp); | |
2757 //STUB(StringExp); | |
2758 //STUB(IntegerExp); | |
2759 STUB(BoolExp); | 2710 STUB(BoolExp); |
2760 | |
2761 //STUB(NotExp); | |
2762 //STUB(ComExp); | |
2763 //STUB(NegExp); | |
2764 //STUB(PtrExp); | |
2765 //STUB(AddrExp); | |
2766 //STUB(SliceExp); | |
2767 //STUB(CastExp); | |
2768 //STUB(DeleteExp); | |
2769 //STUB(IndexExp); | |
2770 //STUB(CommaExp); | |
2771 //STUB(ArrayLengthExp); | |
2772 //STUB(HaltExp); | |
2773 //STUB(RemoveExp); | |
2774 //STUB(ArrayLiteralExp); | |
2775 //STUB(AssocArrayLiteralExp); | |
2776 //STUB(StructLiteralExp); | |
2777 STUB(TupleExp); | 2711 STUB(TupleExp); |
2778 | 2712 |
2779 #define CONSTSTUB(x) LLConstant* x::toConstElem(IRState * p) {error("const Exp type "#x" not implemented: '%s' type: '%s'", toChars(), type->toChars()); fatal(); return NULL; } | 2713 #define CONSTSTUB(x) LLConstant* x::toConstElem(IRState * p) {error("const Exp type "#x" not implemented: '%s' type: '%s'", toChars(), type->toChars()); fatal(); return NULL; } |
2780 CONSTSTUB(Expression); | 2714 CONSTSTUB(Expression); |
2781 //CONSTSTUB(IntegerExp); | |
2782 //CONSTSTUB(RealExp); | |
2783 //CONSTSTUB(NullExp); | |
2784 //CONSTSTUB(ComplexExp); | |
2785 //CONSTSTUB(StringExp); | |
2786 //CONSTSTUB(VarExp); | |
2787 //CONSTSTUB(ArrayLiteralExp); | |
2788 CONSTSTUB(AssocArrayLiteralExp); | 2715 CONSTSTUB(AssocArrayLiteralExp); |
2789 //CONSTSTUB(StructLiteralExp); | |
2790 | 2716 |
2791 unsigned Type::totym() { return 0; } | 2717 unsigned Type::totym() { return 0; } |
2792 | 2718 |
2793 type * Type::toCtype() | 2719 type * Type::toCtype() |
2794 { | 2720 { |
2945 { | 2871 { |
2946 assert(0); | 2872 assert(0); |
2947 return 0; | 2873 return 0; |
2948 } | 2874 } |
2949 | 2875 |
2950 void obj_includelib(char*){} | 2876 void obj_includelib(char*) |
2951 | 2877 { |
2952 void | 2878 // FIXME: we want to support pragma(lib) |
2953 backend_init() | 2879 } |
2880 | |
2881 void backend_init() | |
2954 { | 2882 { |
2955 // now lazily loaded | 2883 // now lazily loaded |
2956 //LLVM_D_InitRuntime(); | 2884 //LLVM_D_InitRuntime(); |
2957 } | 2885 } |
2958 | 2886 |
2959 void | 2887 void backend_term() |
2960 backend_term() | |
2961 { | 2888 { |
2962 LLVM_D_FreeRuntime(); | 2889 LLVM_D_FreeRuntime(); |
2963 } | 2890 } |