mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
IRGen: Generate swift_fixLifetime marker as a private stub.
This lets us remove `swift_fixLifetime` as a real runtime entry point. Also, avoid generating the marker at all if the LLVM ARC optimizer won't be run, as in -Onone or -disable-llvm-arc-optimizer mode.
This commit is contained in:
@@ -581,11 +581,6 @@ void swift::swift_deallocObject(HeapObject *object, size_t allocatedSize,
|
||||
}
|
||||
}
|
||||
|
||||
/// This is a function that is opaque to the optimizer. It is called to ensure
|
||||
/// that an object is alive at least until that time.
|
||||
extern "C" void swift_fixLifetime(OpaqueValue *value) {
|
||||
}
|
||||
|
||||
void swift::swift_weakInit(WeakReference *ref, HeapObject *value) {
|
||||
ref->Value = value;
|
||||
swift_unownedRetain(value);
|
||||
|
||||
Reference in New Issue
Block a user