diff tango/tango/text/convert/Layout.d @ 264:a9dae3da4e87 trunk

[svn r285] Fixed D -> bool LLVM helper for floating point values. Changed the way D-style varargs are passed, now each param should be aligned to size_t.sizeof.
author lindquist
date Sat, 14 Jun 2008 17:28:13 +0200
parents 7816aafeea3c
children
line wrap: on
line diff
--- a/tango/tango/text/convert/Layout.d	Sat Jun 14 06:13:35 2008 +0200
+++ b/tango/tango/text/convert/Layout.d	Sat Jun 14 17:28:13 2008 +0200
@@ -195,6 +195,14 @@
 
         version (LLVMDC)
                 {
+                // code for LLVMDC, all targets!
+                Arg[64] arglist = void;
+                foreach (i, arg; arguments)
+                        {
+                        arglist[i] = args;
+                        args += (arg.tsize + size_t.sizeof - 1) & ~ (size_t.sizeof - 1);
+                        }
+                /*
                 static va_list get_va_arg(TypeInfo ti, ref va_list vp)
                 {
                     auto tisize = ti.tsize;
@@ -209,6 +217,7 @@
                         {
                         arglist[i] = get_va_arg(arg, args);
                         }
+                */
                 }
              else version (X86_64)
                 {