Skip to content
Snippets Groups Projects
Commit 67b5d71e authored by Chris Lattner's avatar Chris Lattner
Browse files

add a data() method.

llvm-svn: 126590
parent b09518c5
No related branches found
No related tags found
No related merge requests found
...@@ -79,6 +79,8 @@ namespace llvm { ...@@ -79,6 +79,8 @@ namespace llvm {
/// empty - Check if the array is empty. /// empty - Check if the array is empty.
bool empty() const { return Length == 0; } bool empty() const { return Length == 0; }
const T *data() const { return Data; }
/// size - Get the array size. /// size - Get the array size.
size_t size() const { return Length; } size_t size() const { return Length; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment