OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d36fb9b
)
add a data() method.
author
Chris Lattner
<sabre@nondot.org>
Sun, 27 Feb 2011 22:51:37 +0000
(22:51 +0000)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/ArrayRef.h
b/include/llvm/ADT/ArrayRef.h
index
d3ea9c0
..
711470b
100644
(file)
--- 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; }