[Support][Test] Time profiler: add regression test
authorAnton Afanasyev <anton.a.afanasyev@gmail.com>
Fri, 7 Jun 2019 12:59:32 +0000 (12:59 +0000)
committerAnton Afanasyev <anton.a.afanasyev@gmail.com>
Fri, 7 Jun 2019 12:59:32 +0000 (12:59 +0000)
commitf2ddd608367b93d3729814e89d717051e98a0e65
tree768d5c747ca02df723780f98b8f8364d9ecff9c7
parent5d66f2b0af844a416ae37acae402f6d340a6a9c4
[Support][Test] Time profiler: add regression test

Summary:
Add output to `llvm::errs()` when `-ftime-trace` option is enabled,
add regression test checking this option works as expected.

Reviewers: thakis, aganea

Subscribers: cfe-commits, llvm-commits

Tags: #clang, #llvm

Differential Revision: https://reviews.llvm.org/D61914

llvm-svn: 362792
clang/test/Driver/check-time-trace.cpp [new file with mode: 0644]
clang/tools/driver/cc1_main.cpp