@@ -262,10 +262,6 @@ class SILModule {
262
262
// / The indexed profile data to be used for PGO, or nullptr.
263
263
std::unique_ptr<llvm::IndexedInstrProfReader> PGOReader;
264
264
265
- // / True if this SILModule really contains the whole module, i.e.
266
- // / optimizations can assume that they see the whole module.
267
- bool wholeModule;
268
-
269
265
// / The options passed into this SILModule.
270
266
const SILOptions &Options;
271
267
@@ -281,8 +277,7 @@ class SILModule {
281
277
llvm::SetVector<DeleteNotificationHandler*> NotificationHandlers;
282
278
283
279
SILModule (ModuleDecl *M, Lowering::TypeConverter &TC,
284
- const SILOptions &Options, const DeclContext *associatedDC,
285
- bool wholeModule);
280
+ const SILOptions &Options, const DeclContext *associatedDC);
286
281
287
282
SILModule (const SILModule&) = delete ;
288
283
void operator =(const SILModule&) = delete ;
@@ -357,8 +352,7 @@ class SILModule {
357
352
// / later parse SIL bodies directly into, without converting from an AST.
358
353
static std::unique_ptr<SILModule>
359
354
createEmptyModule (ModuleDecl *M, Lowering::TypeConverter &TC,
360
- const SILOptions &Options,
361
- bool WholeModule = false );
355
+ const SILOptions &Options);
362
356
363
357
// / Get the Swift module associated with this SIL module.
364
358
ModuleDecl *getSwiftModule () const { return TheSwiftModule; }
@@ -382,7 +376,7 @@ class SILModule {
382
376
// / Returns true if this SILModule really contains the whole module, i.e.
383
377
// / optimizations can assume that they see the whole module.
384
378
bool isWholeModule () const {
385
- return wholeModule ;
379
+ return isa<ModuleDecl>(AssociatedDeclContext) ;
386
380
}
387
381
388
382
bool isStdlibModule () const ;
0 commit comments