[ELF] - Introduce DiscardPolicy instead of 3 relative bool fields.
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 31 Aug 2016 08:46:30 +0000 (08:46 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 31 Aug 2016 08:46:30 +0000 (08:46 +0000)
commit9503f6d2117a834a50295b14c787d0bf6c7edb1e
tree0de00318ede8b2263206e9319e5e2bceef9b3a94
parentb1c4b836b954728a2b9aefa8feaba25a47843510
[ELF] - Introduce DiscardPolicy instead of 3 relative bool fields.

DiscardPolicy is enum replacing several boolean options.
This approach is not only consistent with what we use for
unresolveds (UnresolvedPolicy), but also should help to solve a problem
of options with opposing meanings, mentioned in PR28843

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

llvm-svn: 280209
lld/ELF/Config.h
lld/ELF/Driver.cpp
lld/ELF/OutputSections.cpp
lld/ELF/Writer.cpp