This is an archive of the discontinued LLVM Phabricator instance.

[CodeGen] Fix invalid llvm.linker.options about pragma detect_mismatch
ClosedPublic

Authored by yaxunl on Oct 31 2019, 12:54 PM.

Details

Summary

When a target does not support pragma detect_mismatch, an llvm.linker.options
metadata with an empty entry is created, which causes diagnostic in backend
since backend expects name/value pair in llvm.linker.options entries.

This patch fixes that.

Diff Detail

Event Timeline

yaxunl created this revision.Oct 31 2019, 12:54 PM
rjmccall accepted this revision.Oct 31 2019, 1:17 PM

Seems reasonable.

This revision is now accepted and ready to land.Oct 31 2019, 1:17 PM
tra accepted this revision.Oct 31 2019, 2:08 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptOct 31 2019, 7:29 PM