[project @ 2004-08-20 12:21:03 by simonmar]
authorsimonmar <unknown>
Fri, 20 Aug 2004 12:21:05 +0000 (12:21 +0000)
committersimonmar <unknown>
Fri, 20 Aug 2004 12:21:05 +0000 (12:21 +0000)
commit557d889d9db42c76b8b4cd07f07eb3616ff3236b
treeb2cdc66f90dfe03d3f0aa62a83da5a6ef71c26b9
parentfa93dff5b78e422d2d3abcc99f3918f6726a6719
[project @ 2004-08-20 12:21:03 by simonmar]
Simplify the "impossible branch" handling, and fix a bug in the
process.  CmmSwitch encodes the possibility of having impossible
branches (the destinations are Maybe BlockId rather than just BlockId)
so we don't need to encode impossible branches as dummy blocks
containing a jump to an impossible location (currently 0).

However, PprC and PprCmm weren't set up to cope with Nothings in a
CmmSwitch, so this commit fixes that too.
ghc/compiler/cmm/PprC.hs
ghc/compiler/cmm/PprCmm.hs
ghc/compiler/codeGen/CgUtils.hs