This is an archive of the discontinued LLVM Phabricator instance.

[clang][NFC] Remove unnecessary string copies in CustomDiagInfo
Needs ReviewPublic

Authored by njames93 on Feb 24 2021, 10:09 AM.

Details

Summary

Lookup the map using a string ref and store indexed diag info using a StringRef to the map.
It may be worth using DenseMap to store this, but I'll leave that option on the table for now.

Diff Detail

Event Timeline

njames93 requested review of this revision.Feb 24 2021, 10:09 AM
njames93 created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 24 2021, 10:09 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript