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.
This commit is contained in:
Frits van Bommel
2009-06-16 19:31:10 +02:00
parent 348192e7e7
commit 4158fb474a
11 changed files with 93 additions and 22 deletions

View File

@@ -194,9 +194,7 @@ const llvm::FunctionType* DtoFunctionType(Type* type, Type* thistype, Type* nest
llvm::FunctionType* functype = llvm::FunctionType::get(f->fty.ret->ltype, argtypes, f->fty.c_vararg);
#if 0
Logger::cout() << "Final function type: " << *functype << "\n";
#endif
return functype;
}