summaryrefslogtreecommitdiff
path: root/compiler/simplCore/Simplify.lhs
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2012-01-19 13:35:27 +0000
committerIan Lynagh <igloo@earth.li>2012-01-19 13:36:02 +0000
commit10300ecbab43e9f3411b6aa5fe02e713fb253d05 (patch)
tree11d20bde530adf09b1c54c66e8e39ca7fa4177ee /compiler/simplCore/Simplify.lhs
parent3bc62f5cb52ff40bbd9b1d898f98b3ee973256ca (diff)
downloadhaskell-10300ecbab43e9f3411b6aa5fe02e713fb253d05.tar.gz
Remove getDOptsSmpl; use getDynFlags instead
Diffstat (limited to 'compiler/simplCore/Simplify.lhs')
-rw-r--r--compiler/simplCore/Simplify.lhs8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/simplCore/Simplify.lhs b/compiler/simplCore/Simplify.lhs
index 4d1717f4ea..900d70c7de 100644
--- a/compiler/simplCore/Simplify.lhs
+++ b/compiler/simplCore/Simplify.lhs
@@ -221,7 +221,7 @@ simplTopBinds env0 binds0
-- It's rather as if the top-level binders were imported.
-- See note [Glomming] in OccurAnal.
; env1 <- simplRecBndrs env0 (bindersOfBinds binds0)
- ; dflags <- getDOptsSmpl
+ ; dflags <- getDynFlags
; let dump_flag = dopt Opt_D_verbose_core2core dflags
; env2 <- simpl_binds dump_flag env1 binds0
; freeTick SimplifierDone
@@ -1383,7 +1383,7 @@ simplIdF env var cont
completeCall :: SimplEnv -> Id -> SimplCont -> SimplM (SimplEnv, OutExpr)
completeCall env var cont
= do { ------------- Try inlining ----------------
- dflags <- getDOptsSmpl
+ dflags <- getDynFlags
; let (lone_variable, arg_infos, call_cont) = contArgs cont
-- The args are OutExprs, obtained by *lazily* substituting
-- in the args found in cont. These args are only examined
@@ -1559,7 +1559,7 @@ tryRules env rules fn args call_cont
Just (rule, rule_rhs) ->
do { checkedTick (RuleFired (ru_name rule))
- ; dflags <- getDOptsSmpl
+ ; dflags <- getDynFlags
; trace_dump dflags rule rule_rhs $
return (Just (ruleArity rule, rule_rhs)) }}}
where
@@ -1835,7 +1835,7 @@ reallyRebuildCase env scrut case_bndr alts cont
-- Check for empty alternatives
; if null alts' then missingAlt env case_bndr alts cont
else do
- { dflags <- getDOptsSmpl
+ { dflags <- getDynFlags
; case_expr <- mkCase dflags scrut' case_bndr' alts'
-- Notice that rebuild gets the in-scope set from env', not alt_env