From 878ad7afa512ef300d5df4e7ca0189775342dfc2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 27 Feb 2011 22:51:37 +0000 Subject: [PATCH] add a data() method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126590 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/ArrayRef.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/llvm/ADT/ArrayRef.h b/include/llvm/ADT/ArrayRef.h index d3ea9c0f03b..711470bf56a 100644 --- a/include/llvm/ADT/ArrayRef.h +++ b/include/llvm/ADT/ArrayRef.h @@ -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; }