mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Use LLVM_* attributes in the runtime
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include "swift/Runtime/Heap.h"
|
||||
#include "swift/Runtime/Metadata.h"
|
||||
#include "swift/ABI/System.h"
|
||||
#include "llvm/Support/Compiler.h"
|
||||
#include "llvm/Support/MathExtras.h"
|
||||
#include "MetadataCache.h"
|
||||
#include "Private.h"
|
||||
@@ -187,9 +188,8 @@ OpaqueValue *swift::swift_projectBox(HeapObject *o) {
|
||||
}
|
||||
|
||||
// Forward-declare this, but define it after swift_release.
|
||||
extern "C" LLVM_LIBRARY_VISIBILITY void
|
||||
_swift_release_dealloc(HeapObject *object) SWIFT_CC(RegisterPreservingCC_IMPL)
|
||||
__attribute__((__noinline__, __used__));
|
||||
extern "C" LLVM_LIBRARY_VISIBILITY LLVM_ATTRIBUTE_NOINLINE LLVM_ATTRIBUTE_USED void
|
||||
_swift_release_dealloc(HeapObject *object) SWIFT_CC(RegisterPreservingCC_IMPL);
|
||||
|
||||
void swift::swift_retain(HeapObject *object)
|
||||
SWIFT_CC(RegisterPreservingCC_IMPL) {
|
||||
|
||||
Reference in New Issue
Block a user