comparison gen/functions.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 b243e28f63d4
children e1e93343fc11
comparison
equal deleted inserted replaced
1501:8b9f236dd051 1502:2292878925f4
192 std::reverse(argtypes.begin() + beg, argtypes.end()); 192 std::reverse(argtypes.begin() + beg, argtypes.end());
193 } 193 }
194 194
195 llvm::FunctionType* functype = llvm::FunctionType::get(f->fty.ret->ltype, argtypes, f->fty.c_vararg); 195 llvm::FunctionType* functype = llvm::FunctionType::get(f->fty.ret->ltype, argtypes, f->fty.c_vararg);
196 196
197 #if 0
198 Logger::cout() << "Final function type: " << *functype << "\n"; 197 Logger::cout() << "Final function type: " << *functype << "\n";
199 #endif
200 198
201 return functype; 199 return functype;
202 } 200 }
203 201
204 ////////////////////////////////////////////////////////////////////////////////////////// 202 //////////////////////////////////////////////////////////////////////////////////////////