[PATCH] D49133: Add CachedHashStringRef::data().

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 10 08:15:56 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL336683: Add CachedHashStringRef::data(). (authored by ruiu, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D49133?vs=154799&id=154810#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D49133

Files:
  llvm/trunk/include/llvm/ADT/CachedHashString.h


Index: llvm/trunk/include/llvm/ADT/CachedHashString.h
===================================================================
--- llvm/trunk/include/llvm/ADT/CachedHashString.h
+++ llvm/trunk/include/llvm/ADT/CachedHashString.h
@@ -43,6 +43,7 @@
   }
 
   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; }
 };


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49133.154810.patch
Type: text/x-patch
Size: 435 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180710/e63c56de/attachment.bin>


More information about the llvm-commits mailing list