[Git][ghc/ghc][wip/jeltsch/textual-bytecode-output] Globalize printing of known-variable info
Wolfgang Jeltsch pushed to branch wip/jeltsch/textual-bytecode-output at Glasgow Haskell Compiler / GHC Commits: 91a3c7f1 by Wolfgang Jeltsch at 2026-06-06T15:35:20+03:00 Globalize printing of known-variable info - - - - - 1 changed file: - compiler/GHC/ByteCode/Show.hs Changes: ===================================== compiler/GHC/ByteCode/Show.hs ===================================== @@ -424,15 +424,15 @@ pprVariables = entry (text "variables:") . -- | […] pprVariable :: Maybe (IfaceIdBndr, Word) -> SDoc -pprVariable = maybe (text "<unknown>") (uncurry pprKnown) where - - pprKnown :: IfaceIdBndr -> Word -> SDoc - pprKnown binder offset = pprVariableBinder binder <+> - text "@" <+> - pprFixedSizeNatural offset - -- That the second argument is an offset is apparent from the use of the - -- identifier @offset@ in the implementation of - -- 'GHC.StgToByteCode.dehydrateCgBreakInfo'. +pprVariable = maybe (text "<unknown>") (uncurry pprKnownVariable) + +pprKnownVariable :: IfaceIdBndr -> Word -> SDoc +pprKnownVariable binder offset = pprVariableBinder binder <+> + text "@" <+> + pprFixedSizeNatural offset +-- That the second argument is an offset is apparent from the use of the +-- identifier @offset@ in the implementation of +-- 'GHC.StgToByteCode.dehydrateCgBreakInfo'. -- | […] pprVariableBinder :: IfaceIdBndr -> SDoc View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/91a3c7f144ad3f02c3d304c692c221f7... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/91a3c7f144ad3f02c3d304c692c221f7... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Wolfgang Jeltsch (@jeltsch)