OSDN Git Service

Reland r319090, "COFF: Do not create SectionChunks for discarded comdat sections...
authorPeter Collingbourne <peter@pcc.me.uk>
Tue, 28 Nov 2017 01:30:07 +0000 (01:30 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Tue, 28 Nov 2017 01:30:07 +0000 (01:30 +0000)
commit81e548c8a41bf77319ad533b223ca9971abb47c4
tree8c6346e43ee73ae1a6b734bd3dc518a39d2540a0
parentc87c1c0cd88b18eee5668841b4bfcc6d1260afd3
Reland r319090, "COFF: Do not create SectionChunks for discarded comdat sections." with a fix for debug sections.

If /debug was not specified, readSection will return a null
pointer for debug sections. If the debug section is associative with
another section, we need to make sure that the section returned from
readSection is not a null pointer before adding it as an associative
section.

Differential Revision: https://reviews.llvm.org/D40533

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319133 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/COFF.h