comparison gen/classes.cpp @ 1482:d9c5f5a43403

Run `semantic3` on imported modules, and emit new symbols with `available_externally` linkage. This allows the inliner to inline functions from other modules while telling the code generator to ignore those functions (treat them as declarations) Still generates a few extra `TypeInfo`s and strings... Disabled when generating debug info because I don't really understand it, and it doesn't like this.
author Frits van Bommel <fvbommel wxs.nl>
date Sun, 07 Jun 2009 16:00:13 +0200
parents a5526b7a5ae6
children 2292878925f4
comparison
equal deleted inserted replaced
1481:e0f03e11cdf8 1482:d9c5f5a43403
489 #if 0 489 #if 0
490 if (Logger::enabled()) 490 if (Logger::enabled())
491 { 491 {
492 Logger::cout() << "src2: " << *src << '\n'; 492 Logger::cout() << "src2: " << *src << '\n';
493 Logger::cout() << "index: " << field->index << '\n'; 493 Logger::cout() << "index: " << field->index << '\n';
494 #if 0
494 Logger::cout() << "srctype: " << *src->getType() << '\n'; 495 Logger::cout() << "srctype: " << *src->getType() << '\n';
496 #endif
495 } 497 }
496 #endif 498 #endif
497 LLValue* val = DtoGEPi(src, 0, field->index); 499 LLValue* val = DtoGEPi(src, 0, field->index);
498 500
499 // do we need to offset further? (union area) 501 // do we need to offset further? (union area)