diff options
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | flang/lib/Frontend/CompilerInvocation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/flang/lib/Frontend/CompilerInvocation.cpp b/flang/lib/Frontend/CompilerInvocation.cpp index 340efb1..5e71273 100644 --- a/flang/lib/Frontend/CompilerInvocation.cpp +++ b/flang/lib/Frontend/CompilerInvocation.cpp @@ -1436,6 +1436,10 @@ bool CompilerInvocation::createFromArgs( } } + // Process the timing-related options. + if (args.hasArg(clang::driver::options::OPT_ftime_report)) + invoc.enableTimers = true; + invoc.setArgv0(argv0); return success; |