[FatLTO] output of -ffat-lto-objects -S should be assembly. (#79041)
commit62eb65b36f8e8fa121de047c89fb7dbe5d4c96be
authorSean Fertile <35576261+mandlebug@users.noreply.github.com>
Tue, 23 Jan 2024 02:41:19 +0000 (22 21:41 -0500)
committerGitHub <noreply@github.com>
Tue, 23 Jan 2024 02:41:19 +0000 (22 21:41 -0500)
tree064d2d5091e905652e25e6b2e514bbde1fd1b009
parent9577806b1e6ce06bece48d96b39035f4cee9137d
[FatLTO] output of -ffat-lto-objects -S should be assembly. (#79041)

Fat lto with -c compiles to an object file with the IR embedded in a
section of the object, the combination of fat-lto with -S should then
produce an assembly file equivalent of that. The IR output can still be
genreated by using both -S and -emit-llvm.
clang/lib/Driver/Driver.cpp
clang/test/Driver/fat-lto-objects.c