This is an archive of the discontinued LLVM Phabricator instance.

[Driver][NetBSD] Use T reference instead of getToolChain().getTriple().
ClosedPublic

Authored by fcambus on Oct 14 2021, 7:12 AM.

Diff Detail

Event Timeline

fcambus created this revision.Oct 14 2021, 7:12 AM
fcambus requested review of this revision.Oct 14 2021, 7:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 14 2021, 7:12 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
mgorny added inline comments.Oct 14 2021, 9:06 AM
clang/lib/Driver/ToolChains/NetBSD.cpp
35

Is there a specific reason to choose the name T? FWICS different drivers use different names but I think Triple is both more popular and more readable.

fcambus updated this revision to Diff 379934.Oct 15 2021, 1:46 AM

Use 'Triple' instead of 'T'.

fcambus marked an inline comment as done.Oct 15 2021, 1:47 AM
fcambus added inline comments.
clang/lib/Driver/ToolChains/NetBSD.cpp
35

No specific reason, I agree using the Triple name is a better choice. I updated the diff.

mgorny accepted this revision.Oct 15 2021, 1:59 AM

LGTM (I'm presuming you've tested it and not testing it myself ;-)).

This revision is now accepted and ready to land.Oct 15 2021, 1:59 AM
fcambus marked an inline comment as done.Oct 15 2021, 2:20 AM

Yes, I rebuilt everything with the updated diff and ran check-clang-driver.