[NFC][AIX][XCOFF] if the size of Csect is zero, the Csect do not need write any data...
authordiggerlin <digger.llvm@gmail.com>
Fri, 6 Dec 2019 17:41:38 +0000 (12:41 -0500)
committerdiggerlin <digger.llvm@gmail.com>
Fri, 6 Dec 2019 17:41:38 +0000 (12:41 -0500)
commit50d72fa1461b71d898237f3ce19ab367d0508c87
treed21aef48eb45d55b11f6ad3cbb654c2e7054cfb8
parent79f8c20e2cb634c1b8e42f01b42fc5ab2a512d60
[NFC][AIX][XCOFF] if the size of Csect is zero, the Csect do not need write any data into sections

SUMMARY:

if the size of Csect is zero, the Csect do not need write any data into sections
for example, the TOC Csect has zero size, it do not need invoke a
Asm.writeSectionData(W.OS, Csect.MCCsect, Layout);

Reviewers: daltenty
Subscribers: rupprecht, seiyai,hiraditya

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