diff --git a/compiler/GHC/ByteCode/Asm.hs b/compiler/GHC/ByteCode/Asm.hs index d709c9bff827b314d689df6ddde72ff6179f9662..7d2eea73f2d95baf6afde95778336f10fa80f12a 100644 --- a/compiler/GHC/ByteCode/Asm.hs +++ b/compiler/GHC/ByteCode/Asm.hs @@ -8,7 +8,7 @@ -- | Bytecode assembler and linker module GHC.ByteCode.Asm ( - assembleBCOs, assembleOneBCO, + assembleBCOs, bcoFreeNames, SizedSeq, sizeSS, ssElts, iNTERP_STACK_CHECK_THRESH, @@ -34,7 +34,6 @@ import GHC.Utils.Outputable import GHC.Utils.Panic import GHC.Core.TyCon -import GHC.Data.FlatBag import GHC.Data.SizedSeq import GHC.StgToCmm.Layout ( ArgRep(..) ) @@ -168,15 +167,6 @@ mallocStrings interp ulbcos = do collectPtr (BCOPtrBCO bco) = collect bco collectPtr _ = return () - -assembleOneBCO :: Interp -> Profile -> ProtoBCO Name -> IO UnlinkedBCO -assembleOneBCO interp profile pbco = do - -- TODO: the profile should be bundled with the interpreter: the rts ways are - -- fixed for an interpreter - ubco <- assembleBCO (profilePlatform profile) pbco - UnitFlatBag ubco' <- mallocStrings interp (UnitFlatBag ubco) - return ubco' - assembleBCO :: Platform -> ProtoBCO Name -> IO UnlinkedBCO assembleBCO platform (ProtoBCO { protoBCOName = nm , protoBCOInstrs = instrs