mirror of
https://github.com/intel/llvm.git
synced 2026-02-09 01:52:26 +08:00
don't print codegen time unless -ftime-report was passed.
llvm-svn: 64928
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user