Mercurial > projects > ldc
diff gen/complex.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 | 755abafbf25d |
children | 7f728c52e63c |
line wrap: on
line diff
--- a/gen/complex.cpp Thu Aug 06 16:02:14 2009 +0200 +++ b/gen/complex.cpp Fri Aug 14 00:39:18 2009 +0200 @@ -24,16 +24,16 @@ TY ty = t->toBasetype()->ty; const LLType* base; if (ty == Tcomplex32) { - return LLType::FloatTy; + return LLType::getFloatTy(gIR->context()); } else if (ty == Tcomplex64) { - return LLType::DoubleTy; + return LLType::getDoubleTy(gIR->context()); } else if (ty == Tcomplex80) { if ((global.params.cpu == ARCHx86) || (global.params.cpu == ARCHx86_64)) - return LLType::X86_FP80Ty; + return LLType::getX86_FP80Ty(gIR->context()); else - return LLType::DoubleTy; + return LLType::getDoubleTy(gIR->context()); } else { assert(0);