[PATCH] D40533: Reland r319090, "COFF: Do not create SectionChunks for discarded comdat sections." with a fix for debug sections.

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 27 17:21:30 PST 2017


pcc created this revision.
Herald added a subscriber: JDevlieghere.

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.


https://reviews.llvm.org/D40533

Files:
  lld/COFF/Chunks.cpp
  lld/COFF/Chunks.h
  lld/COFF/InputFiles.cpp
  lld/COFF/InputFiles.h
  lld/COFF/MarkLive.cpp
  lld/COFF/SymbolTable.cpp
  lld/COFF/SymbolTable.h
  lld/COFF/Symbols.h
  lld/test/COFF/pdb-comdat.test
  lld/test/COFF/reloc-discarded.s
  llvm/include/llvm/Object/COFF.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40533.124498.patch
Type: text/x-patch
Size: 23784 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171128/1aecff60/attachment.bin>


More information about the llvm-commits mailing list