Mercurial > projects > ldc
diff gen/naked.cpp @ 1571:8d086d552909
IntegerType is now contextifed.
Requires llvm >= 78969. resistor says this will be the last context API change :)
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Fri, 14 Aug 2009 00:39:18 +0200 |
parents | 15e9762bb620 |
children |
line wrap: on
line diff
--- a/gen/naked.cpp Thu Aug 06 16:02:14 2009 +0200 +++ b/gen/naked.cpp Fri Aug 14 00:39:18 2009 +0200 @@ -233,11 +233,11 @@ } else if (rt->ty == Tcomplex32) { // extern(C) cfloat is return as i64 as->out_c = "=A,"; - asmblock->retty = LLType::Int64Ty; + asmblock->retty = LLType::getInt64Ty(gIR->context()); } else { // cdouble and creal extern(C) are returned in pointer // don't add anything! - asmblock->retty = LLType::VoidTy; + asmblock->retty = LLType::getVoidTy(gIR->context()); asmblock->retn = 0; return; } @@ -314,7 +314,7 @@ // For compatibility, use the GCC/LLVM-GCC way for extern(C/Windows) // extern(C) cfloat -> %xmm0 (extract two floats) as->out_c = "={xmm0},"; - asmblock->retty = LLType::DoubleTy; + asmblock->retty = LLType::getDoubleTy(gIR->context()); } else if (rt->iscomplex()) { // cdouble and extern(D) cfloat -> re=%xmm0, im=%xmm1 as->out_c = "={xmm0},={xmm1},";