diff gen/abi-x86-64.cpp @ 1051:dc608dc33081

Make IrFuncTy a member of TypeFunction. Reset between modules compiled in the same LDC call.
author Christian Kamm <kamm incasoftware de>
date Sat, 07 Mar 2009 14:25:30 +0100
parents afe271b0e271
children a3d7288c4473
line wrap: on
line diff
--- a/gen/abi-x86-64.cpp	Fri Mar 06 21:15:13 2009 +0100
+++ b/gen/abi-x86-64.cpp	Sat Mar 07 14:25:30 2009 +0100
@@ -647,20 +647,20 @@
     if (tf->linkage != LINKd) {
         // TODO: See if this is correct for more than just extern(C).
         
-        IrFuncTy* fty = tf->fty;
+        IrFuncTy& fty = tf->fty;
         
-        if (!fty->arg_sret) {
+        if (!fty.arg_sret) {
             Logger::println("x86-64 ABI: Transforming return type");
-            Type* rt = fty->ret->type->toBasetype();
+            Type* rt = fty.ret->type->toBasetype();
             if (rt != Type::tvoid)
-                fixup(*fty->ret);
+                fixup(*fty.ret);
         }
         
         
         Logger::println("x86-64 ABI: Transforming arguments");
         LOG_SCOPE;
         
-        for (IrFuncTy::ArgIter I = fty->args.begin(), E = fty->args.end(); I != E; ++I) {
+        for (IrFuncTy::ArgIter I = fty.args.begin(), E = fty.args.end(); I != E; ++I) {
             IrFuncTyArg& arg = **I;
             
             if (Logger::enabled())