Completely replace swift_retain_noresult with swift_retain. this is part of a series of commits

to remove reference forwarding for some of the ARC entry points. rdar://22724641. After this
commit, swift_retain_noresult will be completely replaced by swift_retain and LLVMARCOpts.cpp
will no longer canonicalize swift_retain to swift_retain_noresult as now swift_retain returns no
reference.

Swift SVN r32058
This commit is contained in:
Xin Tong
2015-09-18 01:51:17 +00:00
parent db77b54b3c
commit 4e46dacc3d
22 changed files with 79 additions and 156 deletions

View File

@@ -276,11 +276,6 @@ extern "C" LLVM_LIBRARY_VISIBILITY
void _swift_release_dealloc(HeapObject *object)
__attribute__((noinline,used));
void
swift::swift_retain_noresult(HeapObject *object) {
swift_retain(object);
}
void swift::swift_retain(HeapObject *object) {
SWIFT_RETAIN();
_swift_retain(object);