comparison gen/nested.cpp @ 1218:7977096f0e49

Name some types.
author Frits van Bommel <fvbommel wxs.nl>
date Wed, 15 Apr 2009 21:37:01 +0200
parents 033f18ec1371
children b6370749ec8d
comparison
equal deleted inserted replaced
1217:00a84912c689 1218:7977096f0e49
429 Logger::println("Nested var: %s", vd->toChars()); 429 Logger::println("Nested var: %s", vd->toChars());
430 Logger::cout() << "of type: " << *types.back() << '\n'; 430 Logger::cout() << "of type: " << *types.back() << '\n';
431 } 431 }
432 } 432 }
433 433
434 // Append current frame type to frame type list
435 const LLStructType* frameType = LLStructType::get(types); 434 const LLStructType* frameType = LLStructType::get(types);
435 gIR->module->addTypeName(std::string("nest.") + fd->toChars(), frameType);
436 436
437 Logger::cout() << "frameType = " << *frameType << '\n'; 437 Logger::cout() << "frameType = " << *frameType << '\n';
438 438
439 // Store type in IrFunction 439 // Store type in IrFunction
440 IrFunction* irfunction = fd->ir.irFunc; 440 IrFunction* irfunction = fd->ir.irFunc;