comparison gen/classes.cpp @ 1502:2292878925f4

Add an `llvm::OStream` workalike class for use with `Logger::cout()`, with the crucial difference being special handling of `llvm::Type`s so they get printed by name rather than printing their full representation (which can be positively *huge*). This allows re-enabling some logger calls that were disabled due to extreme verbosity.
author Frits van Bommel <fvbommel wxs.nl>
date Tue, 16 Jun 2009 19:31:10 +0200
parents d9c5f5a43403
children 8ca25bd765a3
comparison
equal deleted inserted replaced
1501:8b9f236dd051 1502:2292878925f4
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
495 Logger::cout() << "srctype: " << *src->getType() << '\n'; 494 Logger::cout() << "srctype: " << *src->getType() << '\n';
496 #endif
497 } 495 }
498 #endif 496 #endif
499 LLValue* val = DtoGEPi(src, 0, field->index); 497 LLValue* val = DtoGEPi(src, 0, field->index);
500 498
501 // do we need to offset further? (union area) 499 // do we need to offset further? (union area)