mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Runtime: Remove swift_getClassMetadata()
Greg's arclite hack is much better. See also: <rdar://problem/16735599> Swift SVN r17945
This commit is contained in:
@@ -272,21 +272,6 @@ instantiateGenericMetadata(GenericMetadata *pattern,
|
||||
return adjustAddressPoint(canonFullMetadata, pattern->AddressPoint);
|
||||
}
|
||||
|
||||
#if SWIFT_OBJC_INTEROP
|
||||
const ClassMetadata *
|
||||
swift::swift_getClassMetadata(const void *object) {
|
||||
auto isa = reinterpret_cast<const ClassMetadata *>(object_getClass(object));
|
||||
while (isa->isPureObjC()) {
|
||||
isa = isa->SuperClass;
|
||||
if (isa == nullptr) {
|
||||
swift::crash("Not a Swift class!");
|
||||
}
|
||||
}
|
||||
return isa;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
static size_t
|
||||
_setupClassMask() {
|
||||
void *handle = dlopen(nullptr, RTLD_LAZY);
|
||||
|
||||
Reference in New Issue
Block a user