This accessor is useful and could be slightly more efficient than
Str.val().data() because you can avoid StringRef instantiation.
Differential Revision: https://reviews.llvm.org/D49133
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@336683
91177308-0d34-0410-b5e6-
96231b3b80d8
}
StringRef val() const { return StringRef(P, Size); }
+ const char *data() const { return P; }
uint32_t size() const { return Size; }
uint32_t hash() const { return Hash; }
};