Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
llvm-epi-0.8
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Roger Ferrer
llvm-epi-0.8
Commits
67b5d71e
Commit
67b5d71e
authored
14 years ago
by
Chris Lattner
Browse files
Options
Downloads
Patches
Plain Diff
add a data() method.
llvm-svn: 126590
parent
b09518c5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llvm/include/llvm/ADT/ArrayRef.h
+2
-0
2 additions, 0 deletions
llvm/include/llvm/ADT/ArrayRef.h
with
2 additions
and
0 deletions
llvm/include/llvm/ADT/ArrayRef.h
+
2
−
0
View file @
67b5d71e
...
@@ -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
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment