@@ -2249,7 +2249,7 @@ mkCrateHashesMap
2249
2249
-- | transCollection: translate a MIR collection
2250
2250
transCollection ::
2251
2251
(HasCallStack , ? debug :: Int , ? assertFalseOnError :: Bool ,
2252
- ? libCS :: CollectionState , ? customOps :: CustomOpMap ,
2252
+ ? customOps :: CustomOpMap ,
2253
2253
? printCrucible :: Bool )
2254
2254
=> M. Collection
2255
2255
-> FH. HandleAllocator
@@ -2286,14 +2286,14 @@ transCollection col halloc = do
2286
2286
colState = CollectionState hmap vm sm dm chm col
2287
2287
2288
2288
-- translate all of the functions
2289
- fnInfo <- mapM (stToIO . transDefine ( ? libCS <> colState) ) (Map. elems (col^. M. functions))
2289
+ fnInfo <- mapM (stToIO . transDefine colState) (Map. elems (col^. M. functions))
2290
2290
let pairs1 = [(name, cfg) | (name, cfg, _) <- fnInfo]
2291
2291
let transInfo = Map. fromList [(name, fti) | (name, _, fti) <- fnInfo]
2292
- pairs2 <- mapM (stToIO . transVtable ( ? libCS <> colState) ) (Map. elems (col^. M. vtables))
2292
+ pairs2 <- mapM (stToIO . transVtable colState) (Map. elems (col^. M. vtables))
2293
2293
2294
2294
pairs3 <- Maybe. catMaybes <$> mapM (\ intr -> case intr^. M. intrInst of
2295
2295
Instance (IkVirtual dynTraitName methodIndex) methodId _substs ->
2296
- stToIO $ Just <$> transVirtCall ( ? libCS <> colState)
2296
+ stToIO $ Just <$> transVirtCall colState
2297
2297
(intr^. M. intrName) methodId dynTraitName methodIndex
2298
2298
_ -> return Nothing ) (Map. elems (col ^. M. intrinsics))
2299
2299
0 commit comments