[ELF] - Fix (partial) for bug 28843 - Make sure we handle options with opposing meanings.
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 31 Aug 2016 08:53:21 +0000 (08:53 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 31 Aug 2016 08:53:21 +0000 (08:53 +0000)
commitebf1da565c847123ae06b65a543d191bc4c349e9
tree81876df8ea4c7362843edbb2820a6351bd88c7fd
parentaa49819162d6aa060271e99ead72e2d84f4bc29d
[ELF] - Fix (partial) for bug 28843 - Make sure we handle options with opposing meanings.

As stated in PR28843:

we should handle command lines with

-target1-rel -target1-abs
--demangle --no-demangle
Patch implements this for specified options.
There are probably other conflicting options can exist,
so fix is called "partial".

Differential revision: https://reviews.llvm.org/D23867

llvm-svn: 280211
lld/ELF/Driver.cpp
lld/test/ELF/arm-target1.s
lld/test/ELF/conflict.s