@@ -154,23 +154,16 @@ class TypeRefinementContext {
154
154
155
155
SourceRange SrcRange;
156
156
157
- // / Runtime availability information for the code in this context.
158
157
AvailabilityContext AvailabilityInfo;
159
158
160
- // / Runtime availability information as explicitly declared by attributes
161
- // / for the inlinable code in this context. Compared to AvailabilityInfo,
162
- // / this is not bounded to the minimum deployment OS version.
163
- AvailabilityContext AvailabilityInfoExplicit;
164
-
165
159
std::vector<TypeRefinementContext *> Children;
166
160
167
161
TypeRefinementContext (ASTContext &Ctx, IntroNode Node,
168
162
TypeRefinementContext *Parent, SourceRange SrcRange,
169
- const AvailabilityContext &Info,
170
- const AvailabilityContext &InfoExplicit);
163
+ const AvailabilityContext &Info);
171
164
172
165
public:
173
-
166
+
174
167
// / Create the root refinement context for the given SourceFile.
175
168
static TypeRefinementContext *createRoot (SourceFile *SF,
176
169
const AvailabilityContext &Info);
@@ -179,9 +172,8 @@ class TypeRefinementContext {
179
172
static TypeRefinementContext *createForDecl (ASTContext &Ctx, Decl *D,
180
173
TypeRefinementContext *Parent,
181
174
const AvailabilityContext &Info,
182
- const AvailabilityContext &InfoExplicit,
183
175
SourceRange SrcRange);
184
-
176
+
185
177
// / Create a refinement context for the Then branch of the given IfStmt.
186
178
static TypeRefinementContext *
187
179
createForIfStmtThen (ASTContext &Ctx, IfStmt *S, TypeRefinementContext *Parent,
@@ -248,19 +240,11 @@ class TypeRefinementContext {
248
240
SourceRange getSourceRange () const { return SrcRange; }
249
241
250
242
// / Returns the information on what can be assumed present at run time when
251
- // / running code contained in this context, taking into account the minimum
252
- // / deployment target.
243
+ // / running code contained in this context.
253
244
const AvailabilityContext &getAvailabilityInfo () const {
254
245
return AvailabilityInfo;
255
246
}
256
247
257
- // / Returns the information on what can be assumed present at run time when
258
- // / running code contained in this context if it were to be inlined,
259
- // / without considering the minimum deployment target.
260
- const AvailabilityContext &getAvailabilityInfoExplicit () const {
261
- return AvailabilityInfoExplicit;
262
- }
263
-
264
248
// / Adds a child refinement context.
265
249
void addChild (TypeRefinementContext *Child) {
266
250
assert (Child->getSourceRange ().isValid ());
0 commit comments