[PATCH] D152340: [NFC][COFF] Split WinCOFFObjectWriter to WinCOFFWriter
Haohai, Wen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 6 22:40:05 PDT 2023
HaohaiWen created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
HaohaiWen requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
We'd like to support -gsplit-dwarf for Windows COFF. It requires to
write Dwo and NonDwo sections to different output streams.The original
implementation is not designed to do that and there can be only one
MCObjectWriter. This patch split WinCOFFObjectWriter to WinCOFFWriter so
that:
1. WinCOFFObjectWriter can create multiple WinCOFFWriter.
2. Each WinCOFFWriter can separately collect sections it is interested.
3. Each WinCOFFWriter can write to it's own output stream.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D152340
Files:
llvm/lib/MC/WinCOFFObjectWriter.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152340.529163.patch
Type: text/x-patch
Size: 19607 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230607/56a8d84b/attachment.bin>
More information about the llvm-commits
mailing list