[XCOFF] make sure same number of paddings are added for DWARF sections
authorChen Zheng <czhengsz@cn.ibm.com>
Wed, 29 Jun 2022 04:08:58 +0000 (04:08 +0000)
committerChen Zheng <czhengsz@cn.ibm.com>
Wed, 29 Jun 2022 04:12:35 +0000 (04:12 +0000)
commit60a85726ed329ec90c05c52b88af3a2060e24100
tree67c1c802bbb293780070f2c12262cf7a0916d0a6
parent794b3bf7767c184d953d0554c4041edb31a3194d
[XCOFF] make sure same number of paddings are added for DWARF sections

We are going to change alignment for DWARF sections. This patch is to
fix functionality issue if the alignment is not the same with
DefaultSectionAlign defined in XCOFFObjectWriter.cpp.

Currently no test for this patch as for now alignment for DWARF sections
and other sections are always the same. This patch will be tested when
patch changing DWARF section is merged in.

Reviewed By: Esme

Differential Revision: https://reviews.llvm.org/D116092
llvm/lib/MC/XCOFFObjectWriter.cpp