Runtime: Remove swift_getClassMetadata()

Greg's arclite hack is much better. See also: <rdar://problem/16735599>

Swift SVN r17945
This commit is contained in:
Dave Zarzycki
2014-05-12 18:24:24 +00:00
parent 02fb8b3451
commit f618a98ec4
2 changed files with 0 additions and 26 deletions

View File

@@ -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);