[PECOFF] Support COMDAT section that contains mergeable atoms.

The COMDAT section is a section with a special attribute to tell the linker
whether the symbols in the section are allowed to be merged or not. This patch
add a function to interpret the COMDAT data and set "merge" attribute to the
atoms accordingly.

LLD supports multiple policies to merge atoms; atoms can be merged by name or
by content. COFF supports them, and in addition to that, it supports
choose-the-largest-atom policy, which LLD currently does not support. I simply
mapped it to merge-by-name attribute for now, but we eventually have to support
that policy in the core linker.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@188025 91177308-0d34-0410-b5e6-96231b3b80d8