[LinkerWrapper] Fix save-temps and argument name
authorJoseph Huber <jhuber6@vols.utk.edu>
Fri, 8 Jul 2022 15:37:15 +0000 (11:37 -0400)
committerJoseph Huber <jhuber6@vols.utk.edu>
Fri, 8 Jul 2022 15:38:33 +0000 (11:38 -0400)
commit74a8fce6e87e81802b4fe69769daec19504753bf
tree55095454fe7ac690929e746a93699d771790a58f
parentd2870514048017231c097dfa50d628380d8c73f2
[LinkerWrapper] Fix save-temps and argument name

Summary:
The previous path reworked some handling of temporary files which
exposed some bugs related to capturing local state by reference in the
callback labmda. Squashing this by copying in everything instead. There
was also a problem where the argument name was changed for
`--bitcode-library=` but clang still used `--target-library=`.
clang/lib/Driver/ToolChains/Clang.cpp
clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp