File tree Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -530,13 +530,6 @@ class alignas(1 << DeclContextAlignInBits) DeclContext
530
530
LLVM_READONLY
531
531
PackageUnit *getPackageContext (bool lookupIfNotCurrent = false ) const ;
532
532
533
- // / True if resilience checks can be bypassed within a package.
534
- // / \p isForPackageDecl Bypassing only applies to package types
535
- // / (possibly also public types later) if opted-in, client and defining module
536
- // / are in the same package, and the defining module is a binary module.
537
- LLVM_READONLY
538
- bool bypassResilienceInPackage (bool isForPackageDecl) const ;
539
-
540
533
// / Returns the module context that contains this context.
541
534
LLVM_READONLY
542
535
ModuleDecl *getParentModule () const ;
Original file line number Diff line number Diff line change @@ -300,17 +300,6 @@ PackageUnit *DeclContext::getPackageContext(bool lookupIfNotCurrent) const {
300
300
return nullptr ;
301
301
}
302
302
303
- bool DeclContext::bypassResilienceInPackage (bool isForPackageDecl) const {
304
- // Bypassing resilience checks only applies to package types (and possibly
305
- // public types in the same package in the future). Allowed only if opted-in
306
- // for bypassing optimization, client and defining module are in the same
307
- // package, and defining module is a binary module.
308
- return isForPackageDecl &&
309
- getASTContext ().LangOpts .EnableBypassResilienceInPackage &&
310
- getParentModule ()->inSamePackage (getASTContext ().MainModule ) &&
311
- !getParentModule ()->isBuiltFromInterface ();
312
- }
313
-
314
303
ModuleDecl *DeclContext::getParentModule () const {
315
304
// If the current context is PackageUnit, return the module
316
305
// decl context pointing to the current context. This check
You can’t perform that action at this time.
0 commit comments