[cfe-commits] r64928 - /cfe/trunk/Driver/Backend.cpp

Chris Lattner sabre at nondot.org
Wed Feb 18 10:22:51 PST 2009


Author: lattner
Date: Wed Feb 18 12:22:50 2009
New Revision: 64928

URL: http://llvm.org/viewvc/llvm-project?rev=64928&view=rev
Log:
don't print codegen time unless -ftime-report was passed.

Modified:
    cfe/trunk/Driver/Backend.cpp

Modified: cfe/trunk/Driver/Backend.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/Backend.cpp?rev=64928&r1=64927&r2=64928&view=diff

==============================================================================
--- cfe/trunk/Driver/Backend.cpp (original)
+++ cfe/trunk/Driver/Backend.cpp Wed Feb 18 12:22:50 2009
@@ -355,7 +355,9 @@
   if (!TheModule || !TheTargetData)
     return;
   
-  TimeRegion Region(CodeGenerationTime);
+  
+  
+  TimeRegion Region(CompileOpts.TimePasses ? &CodeGenerationTime : 0);
 
   // Make sure IR generation is happy with the module. This is
   // released by the module provider.





More information about the cfe-commits mailing list