diff options
author | Fendor <power.walross@gmail.com> | 2021-07-19 11:42:01 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-07-21 02:46:50 -0400 |
commit | 5b157eb2bea7fc4ad654c83258cf1ab6ad0f85f0 (patch) | |
tree | 7efac4ebf4829083e9bfe3d0882e463841b7a3be /compiler/GHC.hs | |
parent | 06d1ca856d3374bf8dac952740cfe4cef76a350d (diff) | |
download | haskell-5b157eb2bea7fc4ad654c83258cf1ab6ad0f85f0.tar.gz |
Use Ways API instead of Set specific functions
Diffstat (limited to 'compiler/GHC.hs')
-rw-r--r-- | compiler/GHC.hs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/compiler/GHC.hs b/compiler/GHC.hs index 3405d36c55..f419e21534 100644 --- a/compiler/GHC.hs +++ b/compiler/GHC.hs @@ -404,7 +404,6 @@ import GHC.Unit.Home.ModInfo import Data.Foldable import qualified Data.Map.Strict as Map import Data.Set (Set) -import qualified Data.Set as S import qualified Data.Sequence as Seq import Data.Maybe import Data.Typeable ( Typeable ) @@ -590,10 +589,10 @@ checkBrokenTablesNextToCode logger dflags checkBrokenTablesNextToCode' :: MonadIO m => Logger -> DynFlags -> m Bool checkBrokenTablesNextToCode' logger dflags - | not (isARM arch) = return False - | WayDyn `S.notMember` ways dflags = return False - | not tablesNextToCode = return False - | otherwise = do + | not (isARM arch) = return False + | ways dflags `hasNotWay` WayDyn = return False + | not tablesNextToCode = return False + | otherwise = do linkerInfo <- liftIO $ getLinkerInfo logger dflags case linkerInfo of GnuLD _ -> return True |