mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Remove AvailableAttr::getPlatform().
I can't believe it's really happening.
This commit is contained in:
@@ -792,9 +792,6 @@ public:
|
||||
/// Whether this attribute was spelled `@_unavailableInEmbedded`.
|
||||
bool isForEmbedded() const { return Bits.AvailableAttr.IsForEmbedded; }
|
||||
|
||||
/// Returns the platform that the attribute applies to (may be `none`).
|
||||
PlatformKind getPlatform() const { return Domain.getPlatformKind(); }
|
||||
|
||||
/// Returns the `AvailabilityDomain` associated with the attribute, or
|
||||
/// `std::nullopt` if it has either not yet been resolved or could not be
|
||||
/// resolved successfully.
|
||||
|
||||
@@ -3078,7 +3078,7 @@ class Serializer::DeclSerializer : public DeclVisitor<DeclSerializer> {
|
||||
LIST_VER_TUPLE_PIECES(Introduced),
|
||||
LIST_VER_TUPLE_PIECES(Deprecated),
|
||||
LIST_VER_TUPLE_PIECES(Obsoleted),
|
||||
static_cast<unsigned>(theAttr->getPlatform()),
|
||||
static_cast<unsigned>(domain->getPlatformKind()),
|
||||
theAttr->Message.size(),
|
||||
theAttr->Rename.size(),
|
||||
blob);
|
||||
|
||||
Reference in New Issue
Block a user