Mercurial > projects > ldc
diff gen/runtime.cpp @ 339:385a18242485 trunk
[svn r360] Another mostly rewrite of DtoArrayInit. Should be much more robust now, and probably faster code generated for the most common cases too!
Fixed issues with slice initialization (!!!) of multidimensional static arrays.
Attempt to fix issue with referencing nested 'this' pointers introduced in DMD 1.033 merge.
author | lindquist |
---|---|
date | Sun, 13 Jul 2008 01:29:49 +0200 |
parents | 8d98e42ece93 |
children | 351c0077d0b3 |
line wrap: on
line diff
--- a/gen/runtime.cpp Sat Jul 12 23:56:56 2008 +0200 +++ b/gen/runtime.cpp Sun Jul 13 01:29:49 2008 +0200 @@ -194,6 +194,7 @@ const LLType* longTy = LLType::Int64Ty; const LLType* floatTy = LLType::FloatTy; const LLType* doubleTy = LLType::DoubleTy; + const LLType* realTy = (global.params.useFP80) ? LLType::X86_FP80Ty : LLType::DoubleTy; const LLType* sizeTy = DtoSize_t(); const LLType* voidPtrTy = rt_ptr(byteTy); const LLType* stringTy = rt_array(byteTy); @@ -361,6 +362,7 @@ ARRAY_INIT(longTy,"i64") ARRAY_INIT(floatTy,"float") ARRAY_INIT(doubleTy,"double") + ARRAY_INIT(realTy,"real") ARRAY_INIT(voidPtrTy,"pointer") #undef ARRAY_INIT