@@ -77,10 +77,6 @@ class PMOMemoryObjectInfo {
77
77
// / This is the base type of the memory allocation.
78
78
SILType MemorySILType;
79
79
80
- // / True if the memory object being analyzed represents a 'let', which is
81
- // / initialize-only (reassignments are not allowed).
82
- bool IsLet = false ;
83
-
84
80
// / This is the count of elements being analyzed. For memory objects that are
85
81
// / tuples, this is the flattened element count. For 'self' members in init
86
82
// / methods, this is the local field count (+1 for derive classes).
@@ -108,11 +104,7 @@ class PMOMemoryObjectInfo {
108
104
return dyn_cast<AllocBoxInst>(MemoryInst);
109
105
}
110
106
111
- // / getNumMemoryElements - Return the number of elements, without the extra
112
- // / "super.init" tracker in initializers of derived classes.
113
- unsigned getNumMemoryElements () const {
114
- return NumElements - unsigned (false );
115
- }
107
+ unsigned getNumMemoryElements () const { return NumElements; }
116
108
117
109
// / getElementType - Return the swift type of the specified element.
118
110
SILType getElementType (unsigned EltNo) const ;
@@ -122,9 +114,6 @@ class PMOMemoryObjectInfo {
122
114
// / be determined, return it. Otherwise, return null.
123
115
ValueDecl *getPathStringToElement (unsigned Element,
124
116
std::string &Result) const ;
125
-
126
- // / If the specified value is a 'let' property in an initializer, return true.
127
- bool isElementLetProperty (unsigned Element) const ;
128
117
};
129
118
130
119
enum PMOUseKind {
@@ -186,10 +175,6 @@ struct PMOMemoryUse {
186
175
i < static_cast <unsigned >(FirstElement + NumElements);
187
176
}
188
177
189
- // / onlyTouchesTrivialElements - Return true if all of the accessed elements
190
- // / have trivial type.
191
- bool onlyTouchesTrivialElements (const PMOMemoryObjectInfo &MemoryInfo) const ;
192
-
193
178
// / getElementBitmask - Return a bitmask with the touched tuple elements
194
179
// / set.
195
180
APInt getElementBitmask (unsigned NumMemoryTupleElements) const {
0 commit comments