This is an archive of the discontinued LLVM Phabricator instance.

Add CachedHashStringRef::data().
ClosedPublic

Authored by ruiu on Jul 10 2018, 7:14 AM.

Details

Summary

This accessor is useful and could be slightly more efficient than
Str.val().data() because you can avoid StringRef instantiation.

Diff Detail

Repository
rL LLVM

Event Timeline

ruiu created this revision.Jul 10 2018, 7:14 AM
grimar accepted this revision.Jul 10 2018, 7:18 AM

I have no objections. It already has size() getter, it is consistent to have data(). LGTM.

This revision is now accepted and ready to land.Jul 10 2018, 7:18 AM
This revision was automatically updated to reflect the committed changes.