Skip to content

Commit 4e55214

Browse files
committed
Remove CRASH_REPORTER_CLIENT_HIDDEN in favour of equivilent LLVM macro
1 parent 765140c commit 4e55214

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

include/swift/Runtime/Debug.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
#ifdef SWIFT_HAVE_CRASHREPORTERCLIENT
2626

27-
#define CRASH_REPORTER_CLIENT_HIDDEN __attribute__((visibility("hidden")))
2827
#define CRASHREPORTER_ANNOTATIONS_VERSION 5
2928
#define CRASHREPORTER_ANNOTATIONS_SECTION "__crash_info"
3029

@@ -40,7 +39,7 @@ struct crashreporter_annotations_t {
4039
};
4140

4241
extern "C" {
43-
CRASH_REPORTER_CLIENT_HIDDEN
42+
LLVM_LIBRARY_VISIBILITY
4443
extern struct crashreporter_annotations_t gCRAnnotations;
4544
}
4645

stdlib/public/runtime/Errors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ static void dumpStackTraceEntry(unsigned index, void *framePC) {
152152
// The layout of this struct is CrashReporter ABI, so there are no ABI concerns
153153
// here.
154154
extern "C" {
155-
CRASH_REPORTER_CLIENT_HIDDEN
155+
LLVM_LIBRARY_VISIBILITY
156156
struct crashreporter_annotations_t gCRAnnotations
157157
__attribute__((__section__("__DATA," CRASHREPORTER_ANNOTATIONS_SECTION))) = {
158158
CRASHREPORTER_ANNOTATIONS_VERSION, 0, 0, 0, 0, 0, 0, 0};

0 commit comments

Comments
 (0)