runtime: add and switch to SWIFT_NOINLINE (NFC)

This switches the `LLVM_ATTRIBUTE_NOINLINE` to a local copy which is
namespaced in Swift.
This commit is contained in:
Saleem Abdulrasool
2020-05-06 08:27:26 -07:00
parent 923def217f
commit f465ec0345
6 changed files with 33 additions and 24 deletions

View File

@@ -327,8 +327,8 @@ HeapObject *swift::swift_allocEmptyBox() {
}
// Forward-declare this, but define it after swift_release.
extern "C" SWIFT_LIBRARY_VISIBILITY LLVM_ATTRIBUTE_NOINLINE LLVM_ATTRIBUTE_USED
void _swift_release_dealloc(HeapObject *object);
extern "C" SWIFT_LIBRARY_VISIBILITY SWIFT_NOINLINE LLVM_ATTRIBUTE_USED void
_swift_release_dealloc(HeapObject *object);
static HeapObject *_swift_retain_(HeapObject *object) {
SWIFT_RT_TRACK_INVOCATION(object, swift_retain);