This is an archive of the discontinued LLVM Phabricator instance.

[clang][driver] Fix multiarch output name with -Wl arg
ClosedPublic

Authored by keith on Oct 28 2021, 4:02 PM.

Details

Summary

Previously if you passed a -Wl,-foo _before_ the source filename, the
first InputInfos, which is used for the base input name would be an
InputArg kind, which would never have a base input name. Now we use
that by default, but pick the first InputInfo that is of kind
Filename to get the name from if there is one.

Diff Detail

Event Timeline

keith requested review of this revision.Oct 28 2021, 4:02 PM
keith created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptOct 28 2021, 4:02 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
kastiglione added inline comments.
clang/lib/Driver/Driver.cpp
4697

maybe adjust this comment to emphasize first _file_ input

keith updated this revision to Diff 383213.Oct 28 2021, 5:44 PM
keith marked an inline comment as done.

Update comment

This revision is now accepted and ready to land.Oct 28 2021, 7:11 PM
This revision was automatically updated to reflect the committed changes.