[Driver] Add callback to Command execution
authorSerge Pavlov <sepavloff@gmail.com>
Fri, 24 Apr 2020 05:48:39 +0000 (12:48 +0700)
committerSerge Pavlov <sepavloff@gmail.com>
Thu, 5 Nov 2020 05:21:40 +0000 (12:21 +0700)
commit20b4f4f76030f8712824c91b5f0b0a611476f747
treee6c2826f8f6f6a246bfdf5a144c25219cd2ec4ef
parentab7ef35d3460762165be8b22eb2a07a808f8f828
[Driver] Add callback to Command execution

Summary:
Object of type `Compilation` now can keep a callback that is called
after each execution of `Command`. This must simplify adaptation of
clang in custom distributions and allow facilities like collection of
execution statistics.

Reviewers: rsmith, rjmccall, Eugene.Zelenko

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D78899
clang/include/clang/Driver/Compilation.h
clang/lib/Driver/Compilation.cpp
clang/unittests/Driver/ToolChainTest.cpp