mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SIL] Don't print availability for unreachable/unavailable functions
This commit is contained in:
@@ -2638,7 +2638,8 @@ void SILFunction::print(SILPrintContext &PrintCtx) const {
|
||||
if (isAlwaysWeakImported())
|
||||
OS << "[weak_imported] ";
|
||||
auto availability = getAvailabilityForLinkage();
|
||||
if (!availability.isAlwaysAvailable()) {
|
||||
if (!availability.isAlwaysAvailable() &&
|
||||
!availability.isKnownUnreachable()) {
|
||||
auto version = availability.getOSVersion().getLowerEndpoint();
|
||||
OS << "[available " << version.getAsString() << "] ";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user