[OpenMP] Fix offload packager not writing to temps correctly
authorJoseph Huber <jhuber6@vols.utk.edu>
Mon, 13 Jun 2022 17:41:50 +0000 (13:41 -0400)
committerJoseph Huber <jhuber6@vols.utk.edu>
Tue, 14 Jun 2022 13:16:28 +0000 (09:16 -0400)
commit6a6484c666ed037f20126c4275e70b02807e09f8
tree2f4aea84c326f5402b6015afd245c07a07c28756
parentee78181f34ca6abe9b88dd1ccf97816e434e675d
[OpenMP] Fix offload packager not writing to temps correctly

The offloading packager doesn't have a normal offloading kind. This
would result in its output being sent to the executable name when in
save-temps mode. This would then get overwritten by the actual output.
This patch adds specific checks to make sure that it gets the correct
name.

Reviewed By: tra

Differential Revision: https://reviews.llvm.org/D127673
clang/lib/Driver/Driver.cpp
clang/test/Driver/openmp-offload-gpu-new.c