This is an archive of the discontinued LLVM Phabricator instance.

[ELF] Replace error() with errorOrWarn() for the ASSERT command
ClosedPublic

Authored by MaskRay on Sep 6 2019, 9:13 AM.

Details

Summary

ld.bfd produces an output with --noinhibit-exec.
Use errorOrWarn() so that we can produce an output as well.

An interesting case is that symbol assignments may execute multiple
times, so we probably want to suppress errors for non-final runs.

Diff Detail

Repository
rL LLVM

Event Timeline

MaskRay created this revision.Sep 6 2019, 9:13 AM
peter.smith accepted this revision.Sep 6 2019, 9:23 AM

LGTM. It can be useful to see an output file for debugging purposes. I agree it will be good to suppress multiple warnings but this could be done later.

This revision is now accepted and ready to land.Sep 6 2019, 9:23 AM
This revision was automatically updated to reflect the committed changes.