diff options
author | Ian Lynagh <ian@well-typed.com> | 2013-03-02 23:49:41 +0000 |
---|---|---|
committer | Ian Lynagh <ian@well-typed.com> | 2013-03-02 23:49:41 +0000 |
commit | 7c6b3782ae02497ff1b539cc62ad838818fb29a8 (patch) | |
tree | a4056e874ced61c221bdde11a1fa3386dea22815 /compiler/main/CodeOutput.lhs | |
parent | 04e3b98e5206bbd808d0868cbc96904d35433176 (diff) | |
download | haskell-7c6b3782ae02497ff1b539cc62ad838818fb29a8.tar.gz |
Make codeOutput and friends return the filename that they have created
Diffstat (limited to 'compiler/main/CodeOutput.lhs')
-rw-r--r-- | compiler/main/CodeOutput.lhs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/main/CodeOutput.lhs b/compiler/main/CodeOutput.lhs index 1b7871ca8d..a180789d2b 100644 --- a/compiler/main/CodeOutput.lhs +++ b/compiler/main/CodeOutput.lhs @@ -49,7 +49,8 @@ codeOutput :: DynFlags -> ForeignStubs -> [PackageId] -> Stream IO RawCmmGroup () -- Compiled C-- - -> IO (Bool{-stub_h_exists-}, Maybe FilePath{-stub_c_exists-}) + -> IO (FilePath, + (Bool{-stub_h_exists-}, Maybe FilePath{-stub_c_exists-})) codeOutput dflags this_mod location foreign_stubs pkg_deps cmm_stream = @@ -80,7 +81,7 @@ codeOutput dflags this_mod location foreign_stubs pkg_deps cmm_stream HscInterpreted -> panic "codeOutput: HscInterpreted"; HscNothing -> panic "codeOutput: HscNothing" } - ; return stubs_exist + ; return (filenm, stubs_exist) } doOutput :: String -> (Handle -> IO a) -> IO a |