@@ -47,24 +47,24 @@ template <class Collection, class T> class CollectionIterator {
47
47
using Index =
48
48
decltype (reinterpret_cast <Collection *>(0x123 )->getStartIndex ());
49
49
50
- inline CollectionIterator (const Collection &collection)
50
+ SWIFT_INLINE_THUNK CollectionIterator (const Collection &collection)
51
51
: collection(collection) {
52
52
index = collection.getStartIndex ();
53
53
endIndex = collection.getEndIndex ();
54
54
// FIXME: Begin read access.
55
55
}
56
56
57
- inline ~CollectionIterator () {
57
+ SWIFT_INLINE_THUNK ~CollectionIterator () {
58
58
// FIXME: End read access.
59
59
}
60
60
61
- inline T operator *() const { return collection[index]; }
62
- inline void operator ++() {
61
+ SWIFT_INLINE_THUNK T operator *() const { return collection[index]; }
62
+ SWIFT_INLINE_THUNK void operator ++() {
63
63
++index;
64
64
// FIXME: assert(index <= endIndex); // No need to go past the end.
65
65
}
66
66
67
- inline bool operator !=(const IterationEndSentinel &) const {
67
+ SWIFT_INLINE_THUNK bool operator !=(const IterationEndSentinel &) const {
68
68
return index != endIndex;
69
69
}
70
70
@@ -81,13 +81,13 @@ template <class T> using ArrayIterator = CollectionIterator<Array<T>, T>;
81
81
82
82
// FIXME: This should apply to more than the Array type.
83
83
template <class T >
84
- inline cxxOverlay::ArrayIterator<T> begin (const Array<T> &array
84
+ SWIFT_INLINE_THUNK cxxOverlay::ArrayIterator<T> begin (const Array<T> &array
85
85
[[clang::lifetimebound]]) {
86
86
return cxxOverlay::ArrayIterator<T>(array);
87
87
}
88
88
89
89
template <class T >
90
- inline cxxOverlay::IterationEndSentinel end (const Array<T> &) {
90
+ SWIFT_INLINE_THUNK cxxOverlay::IterationEndSentinel end (const Array<T> &) {
91
91
return {};
92
92
}
93
93
0 commit comments