[project @ 2005-04-13 14:44:51 by simonmar]
authorsimonmar <unknown>
Wed, 13 Apr 2005 14:44:51 +0000 (14:44 +0000)
committersimonmar <unknown>
Wed, 13 Apr 2005 14:44:51 +0000 (14:44 +0000)
preprocessFile: return the source filename rather than "<buffer>"

ghc/compiler/main/GHC.hs

index d907884..5c8a5b8 100644 (file)
@@ -1402,7 +1402,7 @@ preprocessFile dflags src_fn (Just (buf, time))
        when needs_preprocessing $
           ghcError (ProgramError "buffer needs preprocesing; interactive check disabled")
 
-       return (dflags', "<buffer>", buf)
+       return (dflags', src_fn, buf)
 
 
 -----------------------------------------------------------------------------