diff gen/typinf.cpp @ 155:7f92f477ff53 trunk

[svn r171] starting to move IR data from AST nodes into IRState; started with IrFunction
author ChristianK
date Tue, 29 Apr 2008 21:33:50 +0200
parents ce7b81fb957f
children ccd07d9f2ce9
line wrap: on
line diff
--- a/gen/typinf.cpp	Tue Mar 25 18:25:24 2008 +0100
+++ b/gen/typinf.cpp	Tue Apr 29 21:33:50 2008 +0200
@@ -925,8 +925,8 @@
         fd = fdx->overloadExactMatch(tftohash);
         if (fd) {
             DtoForceDeclareDsymbol(fd);
-            assert(fd->irFunc->func != 0);
-            llvm::Constant* c = isaConstant(fd->irFunc->func);
+            assert(gIR->irFunc[fd]->func != 0);
+            llvm::Constant* c = isaConstant(gIR->irFunc[fd]->func);
             assert(c);
             c = llvm::ConstantExpr::getBitCast(c, ptty);
             sinits.push_back(c);
@@ -951,8 +951,8 @@
             fd = fdx->overloadExactMatch(tfeqptr);
             if (fd) {
                 DtoForceDeclareDsymbol(fd);
-                assert(fd->irFunc->func != 0);
-                llvm::Constant* c = isaConstant(fd->irFunc->func);
+                assert(gIR->irFunc[fd]->func != 0);
+                llvm::Constant* c = isaConstant(gIR->irFunc[fd]->func);
                 assert(c);
                 c = llvm::ConstantExpr::getBitCast(c, ptty);
                 sinits.push_back(c);
@@ -979,8 +979,8 @@
         fd = fdx->overloadExactMatch(tftostring);
         if (fd) {
             DtoForceDeclareDsymbol(fd);
-            assert(fd->irFunc->func != 0);
-            llvm::Constant* c = isaConstant(fd->irFunc->func);
+            assert(gIR->irFunc[fd]->func != 0);
+            llvm::Constant* c = isaConstant(gIR->irFunc[fd]->func);
             assert(c);
             c = llvm::ConstantExpr::getBitCast(c, ptty);
             sinits.push_back(c);