[Clang] Do not build the OffloadActionBuilder when using the new driver
authorJoseph Huber <jhuber6@vols.utk.edu>
Tue, 11 Oct 2022 21:11:21 +0000 (16:11 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Tue, 11 Oct 2022 22:46:20 +0000 (17:46 -0500)
commitadf36ea328910ce019893b426aac044bab166e73
tree26d4f9256eab5f89af4201b53e43fa1a76ac0718
parentef25a217266aaf3b6df68ac155537e3a1171dccf
[Clang] Do not build the OffloadActionBuilder when using the new driver

The Offloading toolchain currently has two methods for construction the
requires actions. The "new" driver and the old `OffloadActionBuilder`.
Using either one is mutually exclusive, so we should not initialize this
when using the new driver. This was causing some error messages to be
printed multiple times because we were checking them in both the old and
the new driver.

Reviewed By: tra

Differential Revision: https://reviews.llvm.org/D135715
clang/lib/Driver/Driver.cpp