downsweep: Allow TargetFile not to exist when a buffer is given
authorDaniel Gröber <dxld@darkboxed.org>
Mon, 20 May 2019 10:17:36 +0000 (12:17 +0200)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Wed, 29 May 2019 14:41:02 +0000 (10:41 -0400)
commitfb26d46754564bfacda98618d86d3ee4eda1fcf2
tree1aa4bf43107a19ea23fd3bdedd11bed3d77e8778
parent5b90e0a173f69c9babb3201f62cd5096798c5240
downsweep: Allow TargetFile not to exist when a buffer is given

Currently 'getRootSummary' will fail with an exception if a 'TargetFile' is
given but it does not exist even if an input buffer is passed along for
this target.

In this case it is not necessary for the file to exist since the buffer
will be used as input for the compilation pipeline instead of the file
anyways.
compiler/main/GhcMake.hs
compiler/main/HscTypes.hs
testsuite/tests/ghc-api/target-contents/TargetContents.hs
testsuite/tests/ghc-api/target-contents/TargetContents.stderr