File tree Expand file tree Collapse file tree 3 files changed +18
-18
lines changed Expand file tree Collapse file tree 3 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 27
27
#include " swift/Runtime/Metadata.h"
28
28
#include " swift/Runtime/HeapObject.h"
29
29
#include " SwiftHashableSupport.h"
30
+
31
+ #include " llvm/Support/Compiler.h"
32
+
30
33
#include < atomic>
31
34
#if SWIFT_OBJC_INTEROP
32
35
# include < CoreFoundation/CoreFoundation.h>
@@ -205,9 +208,8 @@ SWIFT_RUNTIME_EXPORT
205
208
void swift_errorInMain (SwiftError *object);
206
209
SWIFT_RUNTIME_EXPORT
207
210
void swift_willThrow (SwiftError *object);
208
- SWIFT_RUNTIME_EXPORT
209
- void swift_unexpectedError (SwiftError *object)
210
- __attribute__((__noreturn__));
211
+ SWIFT_RUNTIME_EXPORT LLVM_ATTRIBUTE_NORETURN
212
+ void swift_unexpectedError (SwiftError *object);
211
213
212
214
#if SWIFT_OBJC_INTEROP
213
215
Original file line number Diff line number Diff line change 19
19
#include " swift/Runtime/Heap.h"
20
20
#include " swift/Runtime/Metadata.h"
21
21
#include " swift/ABI/System.h"
22
+ #include " llvm/Support/Compiler.h"
22
23
#include " llvm/Support/MathExtras.h"
23
24
#include " MetadataCache.h"
24
25
#include " Private.h"
@@ -187,9 +188,8 @@ OpaqueValue *swift::swift_projectBox(HeapObject *o) {
187
188
}
188
189
189
190
// Forward-declare this, but define it after swift_release.
190
- extern " C" LLVM_LIBRARY_VISIBILITY void
191
- _swift_release_dealloc (HeapObject *object) SWIFT_CC(RegisterPreservingCC_IMPL)
192
- __attribute__((__noinline__, __used__));
191
+ extern " C" LLVM_LIBRARY_VISIBILITY LLVM_ATTRIBUTE_NOINLINE LLVM_ATTRIBUTE_USED
192
+ void _swift_release_dealloc (HeapObject *object) SWIFT_CC(RegisterPreservingCC_IMPL);
193
193
194
194
void swift::swift_retain (HeapObject *object)
195
195
SWIFT_CC(RegisterPreservingCC_IMPL) {
Original file line number Diff line number Diff line change 23
23
24
24
#include " ../SwiftShims/Visibility.h"
25
25
26
+ #include " llvm/Support/Compiler.h"
27
+
26
28
namespace swift {
27
29
struct HeapObject ;
28
30
}
29
31
30
- SWIFT_RUNTIME_EXPORT
31
- void swift_leaks_startTrackingObjects (const char *)
32
- __attribute__((__noinline__, __used__));
33
- SWIFT_RUNTIME_EXPORT
34
- int swift_leaks_stopTrackingObjects (const char *)
35
- __attribute__((__noinline__, __used__));
36
- SWIFT_RUNTIME_EXPORT
37
- void swift_leaks_startTrackingObject (swift::HeapObject *)
38
- __attribute__((__noinline__, __used__));
39
- SWIFT_RUNTIME_EXPORT
40
- void swift_leaks_stopTrackingObject (swift::HeapObject *)
41
- __attribute__((__noinline__, __used__));
32
+ SWIFT_RUNTIME_EXPORT LLVM_ATTRIBUTE_NOINLINE LLVM_ATTRIBUTE_USED
33
+ void swift_leaks_startTrackingObjects (const char *);
34
+ SWIFT_RUNTIME_EXPORT LLVM_ATTRIBUTE_NOINLINE LLVM_ATTRIBUTE_USED
35
+ int swift_leaks_stopTrackingObjects (const char *);
36
+ SWIFT_RUNTIME_EXPORT LLVM_ATTRIBUTE_NOINLINE LLVM_ATTRIBUTE_USED
37
+ void swift_leaks_startTrackingObject (swift::HeapObject *);
38
+ SWIFT_RUNTIME_EXPORT LLVM_ATTRIBUTE_NOINLINE LLVM_ATTRIBUTE_USED
39
+ void swift_leaks_stopTrackingObject (swift::HeapObject *);
42
40
43
41
#define SWIFT_LEAKS_START_TRACKING_OBJECT (obj ) \
44
42
swift_leaks_startTrackingObject (obj)
You can’t perform that action at this time.
0 commit comments