comparison gen/llvmhelpers.cpp @ 994:18ad5601dff7

Use LLVM OStream wrapper instead of <iostream> in the logger. llvm::OStream provides all std::ostream functionality (by holding a std::ostream* internally), but * doesn't include <iostream>, avoiding per-file overhead. * allows the stream pointer to be null, and the (inlined) operators do nothing when that's the case. (This also allows removal of the ofstream("/dev/null") hack Logger used when disabled, which presumably wasn't very portable)
author Frits van Bommel <fvbommel wxs.nl>
date Thu, 26 Feb 2009 14:51:02 +0100
parents ae710cba0884
children 45ed9e125a00
comparison
equal deleted inserted replaced
993:27956b440c0a 994:18ad5601dff7
544 { 544 {
545 return new DNullValue(type, LLConstant::getNullValue(lltype)); 545 return new DNullValue(type, LLConstant::getNullValue(lltype));
546 } 546 }
547 547
548 // unknown 548 // unknown
549 std::cout << "unsupported: null value for " << type->toChars() << '\n'; 549 llvm::cout << "unsupported: null value for " << type->toChars() << '\n';
550 assert(0); 550 assert(0);
551 return 0; 551 return 0;
552 552
553 } 553 }
554 554