From 7c6b3782ae02497ff1b539cc62ad838818fb29a8 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Sat, 2 Mar 2013 23:49:41 +0000 Subject: Make codeOutput and friends return the filename that they have created --- compiler/main/CodeOutput.lhs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'compiler/main/CodeOutput.lhs') 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 -- cgit v1.2.1