Mercurial > projects > ldc
comparison gen/abi-x86-64.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 | 755abafbf25d |
comparison
equal
deleted
inserted
replaced
1501:8b9f236dd051 | 1502:2292878925f4 |
---|---|
699 | 699 |
700 Type* ty = arg.type->toBasetype(); | 700 Type* ty = arg.type->toBasetype(); |
701 if (ty->ty == Tstruct) | 701 if (ty->ty == Tstruct) |
702 fixup_D(arg); | 702 fixup_D(arg); |
703 | 703 |
704 #if 0 | |
705 // These can get pretty large... | |
706 if (Logger::enabled()) | 704 if (Logger::enabled()) |
707 Logger::cout() << "New arg type: " << *arg.ltype << '\n'; | 705 Logger::cout() << "New arg type: " << *arg.ltype << '\n'; |
708 #endif | |
709 } | 706 } |
710 | 707 |
711 } else { | 708 } else { |
712 // TODO: See if this is correct for more than just extern(C). | 709 // TODO: See if this is correct for more than just extern(C). |
713 | 710 |
733 continue; | 730 continue; |
734 | 731 |
735 Type* ty = arg.type->toBasetype(); | 732 Type* ty = arg.type->toBasetype(); |
736 | 733 |
737 fixup(arg); | 734 fixup(arg); |
738 #if 0 | |
739 if (Logger::enabled()) | 735 if (Logger::enabled()) |
740 Logger::cout() << "New arg type: " << *arg.ltype << '\n'; | 736 Logger::cout() << "New arg type: " << *arg.ltype << '\n'; |
741 #endif | |
742 } | 737 } |
743 } | 738 } |
744 } | 739 } |