Skip to content

Commit e156826

Browse files
committed
Remove _swift_allocBox_ function pointers.
1 parent cf28ff4 commit e156826

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

include/swift/Runtime/InstrumentsSupport.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ SWIFT_RUNTIME_EXPORT
2525
HeapObject *(*_swift_allocObject)(HeapMetadata const *metadata,
2626
size_t requiredSize,
2727
size_t requiredAlignmentMask);
28-
SWIFT_CC(swift) SWIFT_RUNTIME_EXPORT
29-
BoxPair (*_swift_allocBox)(Metadata const *type);
3028
SWIFT_RUNTIME_EXPORT
3129
HeapObject *(*_swift_retain)(HeapObject *object);
3230
SWIFT_RUNTIME_EXPORT

stdlib/public/runtime/HeapObject.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,6 @@ BoxPair swift::swift_makeBoxUnique(OpaqueValue *buffer, const Metadata *type,
236236
}
237237

238238
BoxPair swift::swift_allocBox(const Metadata *type) {
239-
return _swift_allocBox(type);
240-
}
241-
242-
SWIFT_CC(swift)
243-
static BoxPair _swift_allocBox_(const Metadata *type) {
244239
// Get the heap metadata for the box.
245240
auto metadata = &Boxes.getOrInsert(type).first->Data;
246241

@@ -252,8 +247,6 @@ static BoxPair _swift_allocBox_(const Metadata *type) {
252247
return BoxPair{allocation, projection};
253248
}
254249

255-
auto swift::_swift_allocBox = _swift_allocBox_;
256-
257250
void swift::swift_deallocBox(HeapObject *o) {
258251
auto metadata = static_cast<const GenericBoxHeapMetadata *>(o->metadata);
259252
// Move the object to the deallocating state (+1 -> +0).

0 commit comments

Comments
 (0)