Mercurial > projects > ldc
comparison gen/abi.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 | a5526b7a5ae6 |
children | 7fcb72d518f6 |
comparison
equal
deleted
inserted
replaced
1501:8b9f236dd051 | 1502:2292878925f4 |
---|---|
383 | 383 |
384 Type* ty = arg.type->toBasetype(); | 384 Type* ty = arg.type->toBasetype(); |
385 if (ty->ty == Tstruct) | 385 if (ty->ty == Tstruct) |
386 fixup(arg); | 386 fixup(arg); |
387 | 387 |
388 #if 0 | |
389 if (Logger::enabled()) | 388 if (Logger::enabled()) |
390 Logger::cout() << "New arg type: " << *arg.ltype << '\n'; | 389 Logger::cout() << "New arg type: " << *arg.ltype << '\n'; |
391 #endif | |
392 } | 390 } |
393 } | 391 } |
394 }; | 392 }; |
395 | 393 |
396 TargetABI * TargetABI::getIntrinsic() | 394 TargetABI * TargetABI::getIntrinsic() |