File tree Expand file tree Collapse file tree 4 files changed +25
-11
lines changed
trunk/stdlib/public/runtime Expand file tree Collapse file tree 4 files changed +25
-11
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 89ee9c6bcff40e1238d6af5b0b6be806ea4db41d
2
+ refs/heads/master: b4c67c2d013a215ae8761944f6fea89900178aac
3
3
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
4
4
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
5
5
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ set(swift_runtime_sources
57
57
ImageInspectionELF.cpp
58
58
ImageInspectionCOFF.cpp
59
59
KnownMetadata.cpp
60
+ LLVMSupport.cpp
60
61
Metadata.cpp
61
62
MetadataLookup.cpp
62
63
MutexPThread.cpp
Original file line number Diff line number Diff line change
1
+ // ===--- LLVMSupport.cpp - Swift Language ABI Metadata Support ------------===//
2
+ //
3
+ // This source file is part of the Swift.org open source project
4
+ //
5
+ // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
6
+ // Licensed under Apache License v2.0 with Runtime Library Exception
7
+ //
8
+ // See https://swift.org/LICENSE.txt for license information
9
+ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10
+ //
11
+ // ===----------------------------------------------------------------------===//
12
+
13
+ // ADT uses report_bad_alloc_error to report an error when it can't allocate
14
+ // elements for a data structure. The swift runtime uses ADT without linking
15
+ // against libSupport, so here we provide a stub to make sure we don't fail
16
+ // to link.
17
+ #if defined(swiftCore_EXPORTS)
18
+ namespace llvm {
19
+ void __attribute__ ((__weak__, __visibility__(" hidden" )))
20
+ report_bad_alloc_error(const char *Reason, bool GenCrashDiag) {}
21
+ } // end namespace llvm
22
+ #endif
23
+
Original file line number Diff line number Diff line change @@ -333,14 +333,4 @@ class TypeInfo {
333
333
334
334
} // end namespace swift
335
335
336
- // ADT uses report_bad_alloc_error to report an error when it can't allocate
337
- // elements for a data structure. The swift runtime uses ADT without linking
338
- // against libSupport, so here we provide a stub to make sure we don't fail
339
- // to link. Give it `weak` linkage so, in case the `strong` definition of
340
- // the function is available, that has precedence.
341
- namespace llvm {
342
- __attribute__ ((weak))
343
- void report_bad_alloc_error (const char *Reason, bool GenCrashDiag) {};
344
- } // end namespace llvm
345
-
346
336
#endif /* SWIFT_RUNTIME_PRIVATE_H */
You can’t perform that action at this time.
0 commit comments