Handle -fembed-bitcode for assembly inputs. When the input file is
assembly, write a marker as "LLVM,asm" section.
Fix llvm.org/pr39659
Paths
| Differential D55525
[Driver] Add support for -fembed-bitcode for assembly file ClosedPublic Authored by steven_wu on Dec 10 2018, 11:03 AM.
Details Summary Handle -fembed-bitcode for assembly inputs. When the input file is Fix llvm.org/pr39659
Diff Detail
Event TimelineComment Actions This really feels odd. Why not expect that the developer will add the content themselves? I'm not sure I understand the motivation for this change. Comment Actions
The main motivation for upstreaming this is to make -fembed-bitcode behaves the same as Apple clang. Comment Actions Please do clang-format this. If this is already in the wild, then, I suppose that we don't have the option, but, this seems like something that should be written by the author of the assembly file. This is really the same as the emission of the emission of the directive for the GNU noexecstack, although, there is --noexecstack. This revision is now accepted and ready to land.Dec 11 2018, 10:02 PM Closed by commit rC348943: [Driver] Add support for -fembed-bitcode for assembly file (authored by steven_wu). · Explain WhyDec 12 2018, 9:33 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 177867 include/clang/Driver/Options.td
lib/Driver/ToolChains/Clang.cpp
test/Driver/embed-bitcode.s
tools/driver/cc1as_main.cpp
|