ghc-lib-0.20210201: The GHC API, decoupled from GHC versions
Safe HaskellNone
LanguageHaskell2010

GHC.Driver.CodeOutput

Synopsis

Documentation

codeOutput Source #

Arguments

:: DynFlags 
-> UnitState 
-> Module 
-> FilePath 
-> ModLocation 
-> ForeignStubs 
-> [(ForeignSrcLang, FilePath)]

additional files to be compiled with the C compiler

-> [UnitId] 
-> Stream IO RawCmmGroup a 
-> IO (FilePath, (Bool, Maybe FilePath), [(ForeignSrcLang, FilePath)], a) 

outputForeignStubs :: DynFlags -> UnitState -> Module -> ModLocation -> ForeignStubs -> IO (Bool, Maybe FilePath) Source #

profilingInitCode :: Platform -> Module -> CollectedCCs -> SDoc Source #

Generate code to initialise cost centres