[all-commits] [llvm/llvm-project] 56f3da: [NFC][COFF] Split WinCOFFObjectWriter to WinCOFFWr...
HaohaiWen via All-commits
all-commits at lists.llvm.org
Thu Jun 8 19:04:06 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 56f3da5917ed99c840dd25ad61c1ffce3b2123eb
https://github.com/llvm/llvm-project/commit/56f3da5917ed99c840dd25ad61c1ffce3b2123eb
Author: Haohai Wen <haohai.wen at intel.com>
Date: 2023-06-09 (Fri, 09 Jun 2023)
Changed paths:
M llvm/lib/MC/WinCOFFObjectWriter.cpp
Log Message:
-----------
[NFC][COFF] Split WinCOFFObjectWriter to WinCOFFWriter
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.
Reviewed By: skan
Differential Revision: https://reviews.llvm.org/D152340
More information about the All-commits
mailing list