add a data() method.
authorChris Lattner <sabre@nondot.org>
Sun, 27 Feb 2011 22:51:37 +0000 (22:51 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 27 Feb 2011 22:51:37 +0000 (22:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126590 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/ArrayRef.h

index d3ea9c0f03b75c2dda8ba87c0c54d66e0dfaa582..711470bf56aca89f08bd5d2dd7697d92144f466e 100644 (file)
@@ -79,6 +79,8 @@ namespace llvm {
     /// empty - Check if the array is empty.
     bool empty() const { return Length == 0; }
     
+    const T *data() const { return Data; }
+    
     /// size - Get the array size.
     size_t size() const { return Length; }