[COFF] Remove a superfluous warning about aligncomm for non-common symbols
authorMartin Storsjo <martin@martin.st>
Mon, 6 Aug 2018 19:49:18 +0000 (19:49 +0000)
committerMartin Storsjo <martin@martin.st>
Mon, 6 Aug 2018 19:49:18 +0000 (19:49 +0000)
commit214d69975cb7f2b7c32ccd914153219ab45ea4be
treede87b87386a579e818844387e7bf8065ba607da1
parent434ef8335e0e1ae1e4392d28f3eaca41f78537c2
[COFF] Remove a superfluous warning about aligncomm for non-common symbols

It's not an error if a common symbol (uninitialized data, with alignment
specified via the aligncomm directive) is replaced with a regular
one with initialized data (with alignment specified via the section
chunk).

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

llvm-svn: 339049
lld/COFF/Driver.cpp
lld/test/COFF/Inputs/common-replacement.s [new file with mode: 0644]
lld/test/COFF/common-replacement.s [new file with mode: 0644]