[all-commits] [llvm/llvm-project] 9e239f: [LinkerWrapper] Emit assembly files from LTO with ...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Thu Jan 12 10:55:09 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9e239fc487d51d6b90ad50f6ffa72203d8df3210
https://github.com/llvm/llvm-project/commit/9e239fc487d51d6b90ad50f6ffa72203d8df3210
Author: Joseph Huber <jhuber6 at vols.utk.edu>
Date: 2023-01-12 (Thu, 12 Jan 2023)
Changed paths:
M clang/test/Driver/linker-wrapper.c
M clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
Log Message:
-----------
[LinkerWrapper] Emit assembly files from LTO with `save-temps`
Currently in LTO mode we don't emit any `.s` files for non-NVPTX targets
during LTO. This makes it diffcult to investigate any failures in the
assembly. This patch makes the save-temps mode output an assembly file
and then assembles it separately. I decided to simply invoke `clang` for
this as it would be a lot of effort to invoke the `MCStramer` interface
directly.
Reviewed By: arsenm
Differential Revision: https://reviews.llvm.org/D141543
More information about the All-commits
mailing list