Mercurial > projects > ldc
diff gen/tollvm.c @ 62:b86e00b938a5 trunk
[svn r66] Added support for imaginary floating point types
author | lindquist |
---|---|
date | Thu, 25 Oct 2007 09:48:36 +0200 |
parents | 2c3cd3596187 |
children | f918f3e2e99e |
line wrap: on
line diff
--- a/gen/tollvm.c Thu Oct 25 09:26:17 2007 +0200 +++ b/gen/tollvm.c Thu Oct 25 09:48:36 2007 +0200 @@ -65,11 +65,20 @@ // floats case Tfloat32: + case Timaginary32: return llvm::Type::FloatTy; case Tfloat64: + case Timaginary64: case Tfloat80: + case Timaginary80: return llvm::Type::DoubleTy; + // complex + case Tcomplex32: + case Tcomplex64: + case Tcomplex80: + assert(0 && "complex number types not yet implemented"); + // pointers case Tpointer: { assert(t->next);