[all-commits] [llvm/llvm-project] 3785a4: Reapply [LLD] [COFF] Implement a GNU/ELF like -wra...
Martin Storsjö via All-commits
all-commits at lists.llvm.org
Thu Oct 15 12:15:15 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 3785a413feef896e8a022731cc6ed405d5ebe81b
https://github.com/llvm/llvm-project/commit/3785a413feef896e8a022731cc6ed405d5ebe81b
Author: Martin Storsjö <martin at martin.st>
Date: 2020-10-15 (Thu, 15 Oct 2020)
Changed paths:
M lld/COFF/Driver.cpp
M lld/COFF/InputFiles.h
M lld/COFF/LTO.cpp
M lld/COFF/MinGW.cpp
M lld/COFF/MinGW.h
M lld/COFF/Options.td
M lld/COFF/SymbolTable.cpp
M lld/COFF/Symbols.h
M lld/MinGW/Driver.cpp
M lld/MinGW/Options.td
A lld/test/COFF/wrap-i386.s
A lld/test/COFF/wrap-import.ll
A lld/test/COFF/wrap-lto-1.ll
A lld/test/COFF/wrap-lto-2.ll
A lld/test/COFF/wrap-real-missing.s
A lld/test/COFF/wrap-with-archive.s
A lld/test/COFF/wrap.s
M lld/test/MinGW/driver.test
Log Message:
-----------
Reapply [LLD] [COFF] Implement a GNU/ELF like -wrap option
Add a simple forwarding option in the MinGW frontend, and implement
the private -wrap option in the COFF linker.
The feature in lld-link isn't gated by the -lldmingw option, but
the option is left as a private, undocumented option primarily
used by the MinGW driver.
The implementation is significantly based on the support for --wrap
in the ELF linker, but many small nuance details are different
between the ELF and COFF linkers, ending up with more than a few
implementation differences.
This fixes https://bugs.llvm.org/show_bug.cgi?id=47384.
Differential Revision: https://reviews.llvm.org/D89004
Reapplied with the bitfield member canInline fixed so it doesn't break
builds targeting windows.
More information about the All-commits
mailing list