mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-03 13:33:13 +01:00
Wrapped all the most potentially expensive logging calls in a conditional to only do work when actually requested.
Commented some logging calls that could potentially write out many megabytes of type dumps.
This commit is contained in:
@@ -319,7 +319,8 @@ LLValue* DtoPointedType(LLValue* ptr, LLValue* val)
|
||||
// something else unsupported
|
||||
else
|
||||
{
|
||||
Logger::cout() << *ptrTy << '|' << *valTy << '\n';
|
||||
if (Logger::enabled())
|
||||
Logger::cout() << *ptrTy << '|' << *valTy << '\n';
|
||||
assert(0);
|
||||
}
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user