comparison gen/toir.cpp @ 101:169fda3a77d4 trunk

[svn r105] -inline does nothing for now, the -On setting can already be used to trigger it. Fixed a rare bug in AddrExp.
author lindquist
date Fri, 16 Nov 2007 10:01:24 +0100
parents 5071469303d4
children 027b8d8b71ec
comparison
equal deleted inserted replaced
100:5071469303d4 101:169fda3a77d4
1465 FuncDeclaration* fd = fv->func; 1465 FuncDeclaration* fd = fv->func;
1466 assert(fd); 1466 assert(fd);
1467 if (fd->llvmValue == 0) 1467 if (fd->llvmValue == 0)
1468 fd->toObjFile(); 1468 fd->toObjFile();
1469 return new DFuncValue(fd, fd->llvmValue); 1469 return new DFuncValue(fd, fd->llvmValue);
1470 }
1471 else if (DImValue* im = v->isIm()) {
1472 return v;
1470 } 1473 }
1471 return new DFieldValue(type, v->getLVal(), false); 1474 return new DFieldValue(type, v->getLVal(), false);
1472 } 1475 }
1473 1476
1474 ////////////////////////////////////////////////////////////////////////////////////////// 1477 //////////////////////////////////////////////////////////////////////////////////////////