This is an archive of the discontinued LLVM Phabricator instance.

[clang] NFC: Use compile-time option spelling when generating command line
ClosedPublic

Authored by jansvoboda11 on Aug 3 2023, 4:06 PM.

Details

Summary

When generating command lines, use the option spelling generated by TableGen (StringLiteral) instead of constructing it at runtime. This saves some needless allocations.

Depends on D157029.

Diff Detail

Event Timeline

jansvoboda11 created this revision.Aug 3 2023, 4:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 3 2023, 4:06 PM
Herald added a subscriber: ributzka. · View Herald Transcript
jansvoboda11 requested review of this revision.Aug 3 2023, 4:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 3 2023, 4:06 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
MaskRay accepted this revision.Aug 9 2023, 9:22 AM
MaskRay added a subscriber: MaskRay.

Thanks!

This revision is now accepted and ready to land.Aug 9 2023, 9:22 AM
benlangmuir accepted this revision.Aug 9 2023, 9:27 AM