mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Disabled some extensive LLVM value logging with -vv that dramatically increases -vv output length for little value.
This commit is contained in:
@@ -102,9 +102,11 @@ LLConstant* DtoConstStructInitializer(StructInitializer* si)
|
||||
// get formal type
|
||||
const llvm::StructType* structtype = isaStruct(ts->ir.type->get());
|
||||
|
||||
#if 0
|
||||
// log it
|
||||
if (Logger::enabled())
|
||||
Logger::cout() << "llvm struct type: " << *structtype << '\n';
|
||||
#endif
|
||||
|
||||
// sanity check
|
||||
assert(si->value.dim > 0);
|
||||
@@ -528,7 +530,6 @@ void DtoResolveStruct(StructDeclaration* sd)
|
||||
|
||||
// get some info
|
||||
bool ispacked = (ts->alignsize() == 1);
|
||||
bool isunion = sd->isUnionDeclaration();
|
||||
|
||||
// set irstruct info
|
||||
irstruct->packed = ispacked;
|
||||
|
||||
@@ -442,7 +442,7 @@ DValue* DtoCallFunction(Loc& loc, Type* resulttype, DValue* fnval, Expressions*
|
||||
}
|
||||
}
|
||||
|
||||
#if 1
|
||||
#if 0
|
||||
if (Logger::enabled())
|
||||
{
|
||||
Logger::println("%lu params passed", args.size());
|
||||
@@ -451,15 +451,17 @@ DValue* DtoCallFunction(Loc& loc, Type* resulttype, DValue* fnval, Expressions*
|
||||
Logger::cout() << "arg["<<i<<"] = " << *args[i] << '\n';
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// void returns cannot not be named
|
||||
const char* varname = "";
|
||||
if (callableTy->getReturnType() != LLType::VoidTy)
|
||||
varname = "tmp";
|
||||
|
||||
#if 0
|
||||
if (Logger::enabled())
|
||||
Logger::cout() << "Calling: " << *callable << '\n';
|
||||
#endif
|
||||
|
||||
// call the function
|
||||
LLCallSite call = gIR->CreateCallOrInvoke(callable, args.begin(), args.end(), varname);
|
||||
|
||||
Reference in New Issue
Block a user