From: Chris Lattner Date: Wed, 18 Feb 2009 18:22:50 +0000 (+0000) Subject: don't print codegen time unless -ftime-report was passed. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b76c0dd4abd908781cf69fcf822a1d8bb5532e6;p=clang don't print codegen time unless -ftime-report was passed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64928 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Driver/Backend.cpp b/Driver/Backend.cpp index a751041b98..8cffae0748 100644 --- a/Driver/Backend.cpp +++ b/Driver/Backend.cpp @@ -355,7 +355,9 @@ void BackendConsumer::EmitAssembly() { 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.