Introduce and use EnumSet in DynFlags
authorBen Gamari <bgamari.foss@gmail.com>
Wed, 15 Mar 2017 18:30:33 +0000 (14:30 -0400)
committerBen Gamari <ben@smart-cactus.org>
Wed, 15 Mar 2017 19:23:22 +0000 (15:23 -0400)
commitcc9d574a578090d17d1597628e44371003cb19a7
treee93ecdb8e419e17c28003d9e15e78fe055691b45
parenta7be163196f452530b61cbb526631db946d20e8b
Introduce and use EnumSet in DynFlags

This factors out a repeated pattern found in DynFlags, where we use an
IntSet and Enum to represent sets of flags.

Requires bump of haddock submodule.

Test Plan: validate

Reviewers: austin, goldfire

Subscribers: rwbarton, thomie, snowleopard

Differential Revision: https://phabricator.haskell.org/D3331
compiler/ghc.cabal.in
compiler/ghc.mk
compiler/iface/FlagChecker.hs
compiler/main/DynFlags.hs
compiler/parser/Lexer.x
compiler/typecheck/TcSplice.hs
compiler/utils/EnumSet.hs [new file with mode: 0644]
utils/haddock