This is an archive of the discontinued LLVM Phabricator instance.

[ELF] Fail the link early if a map file path is invalid
ClosedPublic

Authored by jhenderson on Apr 3 2017, 8:17 AM.

Details

Summary

As with the changes made in rL297645, we do not want a potentially long link to be run, if it will ultimately fail because the map file is not writable. This change reuses the same functionality as the output file path check. See D30449 for further justification and explanations.

Diff Detail

Repository
rL LLVM

Event Timeline

jhenderson created this revision.Apr 3 2017, 8:17 AM
ruiu accepted this revision.Apr 3 2017, 12:01 PM

LGTM

ELF/Filesystem.cpp
73 ↗(On Diff #93869)

We generally use short variable names unlike JavaIshLongVariableName, so let's name this Desc.

This revision is now accepted and ready to land.Apr 3 2017, 12:01 PM
This revision was automatically updated to reflect the committed changes.