[LinkerWrapper] Improve -save-temps behaviour
authorJoseph Huber <jhuber6@vols.utk.edu>
Thu, 12 Jan 2023 22:42:30 +0000 (16:42 -0600)
committerJoseph Huber <jhuber6@vols.utk.edu>
Thu, 12 Jan 2023 22:43:30 +0000 (16:43 -0600)
commit439ba4c9026db6ab4c0a06737638ac42ebc445fd
treefa7f755b075382305b69eac71752f4d9fd5257c7
parentd3dcc0affb75eb6dfeabe5969ca5c459bd5a8df8
[LinkerWrapper] Improve -save-temps behaviour

Summary:
This patch changes around some of the names for the temp files we
generate. This also emits the `postlink` and `postopt` temp files. We
don't use the built-in save temps from LTO right now because it doesn't
give the ASM properly. We may be able to fix that in the future.
clang/test/Driver/linker-wrapper.c
clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp