comparison gen/nested.cpp @ 1569:755abafbf25d

Push the context through StructType::get. Requires LLVM >= 78258. Also remove old #if's.
author Benjamin Kramer <benny.kra@gmail.com>
date Thu, 06 Aug 2009 01:47:39 +0200
parents 630fc54f7c1e
children
comparison
equal deleted inserted replaced
1568:a591aa6bd6dc 1569:755abafbf25d
445 Logger::println("Nested var: %s", vd->toChars()); 445 Logger::println("Nested var: %s", vd->toChars());
446 Logger::cout() << "of type: " << *types.back() << '\n'; 446 Logger::cout() << "of type: " << *types.back() << '\n';
447 } 447 }
448 } 448 }
449 449
450 const LLStructType* frameType = LLStructType::get(types); 450 const LLStructType* frameType = LLStructType::get(gIR->context(), types);
451 gIR->module->addTypeName(std::string("nest.") + fd->toChars(), frameType); 451 gIR->module->addTypeName(std::string("nest.") + fd->toChars(), frameType);
452 452
453 Logger::cout() << "frameType = " << *frameType << '\n'; 453 Logger::cout() << "frameType = " << *frameType << '\n';
454 454
455 // Store type in IrFunction 455 // Store type in IrFunction