From fdecec122ac7d7ac849a560be1422e182afe2698 Mon Sep 17 00:00:00 2001 From: Tomas Lindquist Olsen Date: Tue, 3 Mar 2009 17:21:35 +0100 Subject: [PATCH] Disabled some extensive LLVM value logging with -vv that dramatically increases -vv output length for little value. --- gen/structs.cpp | 3 ++- gen/tocall.cpp | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gen/structs.cpp b/gen/structs.cpp index 9d7e2821..e0603767 100644 --- a/gen/structs.cpp +++ b/gen/structs.cpp @@ -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; diff --git a/gen/tocall.cpp b/gen/tocall.cpp index 487d4da1..f5f61fb4 100644 --- a/gen/tocall.cpp +++ b/gen/tocall.cpp @@ -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["<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);