mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-13 01:15:32 +00:00
add some missing const qualifiers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148274 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ff5bad0787
commit
1752e45de9
@ -111,14 +111,14 @@ namespace llvm {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// slice(n) - Chop off the first N elements of the array.
|
/// slice(n) - Chop off the first N elements of the array.
|
||||||
ArrayRef<T> slice(unsigned N) {
|
ArrayRef<T> slice(unsigned N) const {
|
||||||
assert(N <= size() && "Invalid specifier");
|
assert(N <= size() && "Invalid specifier");
|
||||||
return ArrayRef<T>(data()+N, size()-N);
|
return ArrayRef<T>(data()+N, size()-N);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// slice(n, m) - Chop off the first N elements of the array, and keep M
|
/// slice(n, m) - Chop off the first N elements of the array, and keep M
|
||||||
/// elements in the array.
|
/// elements in the array.
|
||||||
ArrayRef<T> slice(unsigned N, unsigned M) {
|
ArrayRef<T> slice(unsigned N, unsigned M) const {
|
||||||
assert(N+M <= size() && "Invalid specifier");
|
assert(N+M <= size() && "Invalid specifier");
|
||||||
return ArrayRef<T>(data()+N, M);
|
return ArrayRef<T>(data()+N, M);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user