diff gen/runtime.cpp @ 586:192b82878b78

Fixed most regressions from last commit.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Wed, 10 Sep 2008 12:33:33 -0700
parents d30c40f1128d
children e6bcc4d9e5ff
line wrap: on
line diff
--- a/gen/runtime.cpp	Tue Sep 09 16:49:47 2008 -0700
+++ b/gen/runtime.cpp	Wed Sep 10 12:33:33 2008 -0700
@@ -163,6 +163,8 @@
     const LLType* shortTy = LLType::Int16Ty;
     const LLType* intTy = LLType::Int32Ty;
     const LLType* longTy = LLType::Int64Ty;
+    const LLType* sizeTy = DtoSize_t();
+
     const LLType* floatTy = LLType::FloatTy;
     const LLType* doubleTy = LLType::DoubleTy;
     const LLType* realTy;
@@ -170,7 +172,11 @@
         realTy = LLType::X86_FP80Ty;
     else
         realTy = LLType::DoubleTy;
-    const LLType* sizeTy = DtoSize_t();
+
+    const LLType* cfloatTy = llvm::StructType::get(floatTy, floatTy, 0);
+    const LLType* cdoubleTy = llvm::StructType::get(doubleTy, doubleTy, 0);
+    const LLType* crealTy = llvm::StructType::get(realTy, realTy, 0);
+
     const LLType* voidPtrTy = rt_ptr(byteTy);
     const LLType* stringTy = rt_array(byteTy);
     const LLType* wstringTy = rt_array(shortTy);
@@ -338,6 +344,9 @@
     ARRAY_INIT(floatTy,"float")
     ARRAY_INIT(doubleTy,"double")
     ARRAY_INIT(realTy,"real")
+    ARRAY_INIT(cfloatTy,"cfloat")
+    ARRAY_INIT(cdoubleTy,"cdouble")
+    ARRAY_INIT(crealTy,"creal")
     ARRAY_INIT(voidPtrTy,"pointer")
 
     #undef ARRAY_INIT