mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 16:29:20 +00:00
fix some typos.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125536 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
727961a1a3
commit
04df049014
@ -17,8 +17,8 @@ namespace llvm {
|
|||||||
class APInt;
|
class APInt;
|
||||||
|
|
||||||
/// ArrayRef - Represent a constant reference to an array (0 or more elements
|
/// ArrayRef - Represent a constant reference to an array (0 or more elements
|
||||||
/// consequtively in memory), i.e. a start pointer and a length. It allows
|
/// consecutively in memory), i.e. a start pointer and a length. It allows
|
||||||
/// various APIs to take consequtive elements easily and conveniently.
|
/// various APIs to take consecutive elements easily and conveniently.
|
||||||
///
|
///
|
||||||
/// This class does not own the underlying data, it is expected to be used in
|
/// This class does not own the underlying data, it is expected to be used in
|
||||||
/// situations where the data resides in some other buffer, whose lifetime
|
/// situations where the data resides in some other buffer, whose lifetime
|
||||||
@ -53,7 +53,7 @@ namespace llvm {
|
|||||||
: Data(&OneElt), Length(1) {}
|
: Data(&OneElt), Length(1) {}
|
||||||
|
|
||||||
/// Construct an ArrayRef from a pointer and length.
|
/// Construct an ArrayRef from a pointer and length.
|
||||||
/*implicit*/ ArrayRef(T *data, size_t length)
|
/*implicit*/ ArrayRef(const T *data, size_t length)
|
||||||
: Data(data), Length(length) {}
|
: Data(data), Length(length) {}
|
||||||
|
|
||||||
/// Construct an ArrayRef from a SmallVector.
|
/// Construct an ArrayRef from a SmallVector.
|
||||||
@ -85,7 +85,7 @@ namespace llvm {
|
|||||||
return Data[0];
|
return Data[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
/// back - Get the last character in the string.
|
/// back - Get the last element.
|
||||||
const T &back() const {
|
const T &back() const {
|
||||||
assert(!empty());
|
assert(!empty());
|
||||||
return Data[Length-1];
|
return Data[Length-1];
|
||||||
@ -95,7 +95,7 @@ namespace llvm {
|
|||||||
/// @name Operator Overloads
|
/// @name Operator Overloads
|
||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
char operator[](size_t Index) const {
|
const T &operator[](size_t Index) const {
|
||||||
assert(Index < Length && "Invalid index!");
|
assert(Index < Length && "Invalid index!");
|
||||||
return Data[Index];
|
return Data[Index];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user