changeset 1030:3ead5c40b7d6

Disabled some extensive LLVM value logging with -vv that dramatically increases -vv output length for little value.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Tue, 03 Mar 2009 17:21:35 +0100
parents 4d366a75d95f
children e594385d7e53
files gen/structs.cpp gen/tocall.cpp
diffstat 2 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gen/structs.cpp	Tue Mar 03 15:08:26 2009 +0100
+++ b/gen/structs.cpp	Tue Mar 03 17:21:35 2009 +0100
@@ -102,9 +102,11 @@
     // 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 @@
 
     // get some info
     bool ispacked = (ts->alignsize() == 1);
-    bool isunion = sd->isUnionDeclaration();
 
     // set irstruct info
     irstruct->packed = ispacked;
--- a/gen/tocall.cpp	Tue Mar 03 15:08:26 2009 +0100
+++ b/gen/tocall.cpp	Tue Mar 03 17:21:35 2009 +0100
@@ -442,7 +442,7 @@
         }
     }
 
-    #if 1
+#if 0
     if (Logger::enabled())
     {
         Logger::println("%lu params passed", args.size());
@@ -451,15 +451,17 @@
             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);