Wolfgang Jeltsch pushed to branch wip/jeltsch/textual-bytecode-output at Glasgow Haskell Compiler / GHC Commits: c80c634d by Wolfgang Jeltsch at 2026-07-01T21:26:23+03:00 Make word literals and variable offsets output in decimal - - - - - 1 changed file: - compiler/GHC/ByteCode/Show.hs Changes: ===================================== compiler/GHC/ByteCode/Show.hs ===================================== @@ -174,7 +174,7 @@ pprLiteral :: Module -> BCONPtr -> SDoc pprLiteral currentModule literal = case literal of BCONPtrWord word -> text "word" <+> - pprFixedSizeNatural word + ppr word BCONPtrLbl label -> text "label" <+> ppr label @@ -421,9 +421,9 @@ pprVariable :: Maybe (IfaceIdBndr, Word) -> SDoc pprVariable = maybe (text "<unknown>") (uncurry pprKnownVariable) pprKnownVariable :: IfaceIdBndr -> Word -> SDoc -pprKnownVariable binder offset = pprVariableBinder binder <+> - text "@" <+> - pprFixedSizeNatural offset +pprKnownVariable binder offset = pprVariableBinder binder <+> + text "@" <+> + ppr offset -- That the second argument is an offset is apparent from the use of the -- identifier @offset@ in the implementation of -- 'GHC.StgToByteCode.dehydrateCgBreakInfo'. View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c80c634d80c6e1defceac0935357d9b2... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c80c634d80c6e1defceac0935357d9b2... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Wolfgang Jeltsch (@jeltsch)