Skip to content
  • Ömer Sinan Ağacan's avatar
    Return results of Cmm streams in backends · 1c7ec449
    Ömer Sinan Ağacan authored
    This generalizes code generators (outputAsm, outputLlvm, outputC, and
    the call site codeOutput) so that they'll return the return values of
    the passed Cmm streams.
    
    This allows accumulating data during Cmm generation and returning it to
    the call site in HscMain.
    
    Previously the Cmm streams were assumed to return (), so the code
    generators returned () as well.
    
    This change is required by !1304 and !1530.
    
    Skipping CI as this was tested before and I only updated the commit
    message.
    
    [skip ci]
    1c7ec449