File tree Expand file tree Collapse file tree 2 files changed +19
-11
lines changed Expand file tree Collapse file tree 2 files changed +19
-11
lines changed Original file line number Diff line number Diff line change @@ -59,19 +59,24 @@ static void emitObjCConditional(raw_ostream &out,
59
59
60
60
static void writePtrauthPrologue (raw_ostream &os) {
61
61
emitCxxConditional (os, [&]() {
62
- os << " #if defined(__arm64e__) && __has_include(<ptrauth.h>)\n " ;
63
- os << " # include <ptrauth.h>\n " ;
64
- os << " #else\n " ;
65
62
ClangSyntaxPrinter (os).printIgnoredDiagnosticBlock (
66
- " reserved-macro-identifier" , [&]() {
67
- os << " # ifndef __ptrauth_swift_value_witness_function_pointer\n " ;
68
- os << " # define __ptrauth_swift_value_witness_function_pointer(x)\n " ;
69
- os << " # endif\n " ;
70
- os << " # ifndef __ptrauth_swift_class_method_pointer\n " ;
71
- os << " # define __ptrauth_swift_class_method_pointer(x)\n " ;
72
- os << " # endif\n " ;
63
+ " non-modular-include-in-framework-module" , [&] {
64
+ os << " #if defined(__arm64e__) && __has_include(<ptrauth.h>)\n " ;
65
+ os << " # include <ptrauth.h>\n " ;
66
+ os << " #else\n " ;
67
+ ClangSyntaxPrinter (os).printIgnoredDiagnosticBlock (
68
+ " reserved-macro-identifier" , [&]() {
69
+ os << " # ifndef "
70
+ " __ptrauth_swift_value_witness_function_pointer\n " ;
71
+ os << " # define "
72
+ " __ptrauth_swift_value_witness_function_pointer(x)\n " ;
73
+ os << " # endif\n " ;
74
+ os << " # ifndef __ptrauth_swift_class_method_pointer\n " ;
75
+ os << " # define __ptrauth_swift_class_method_pointer(x)\n " ;
76
+ os << " # endif\n " ;
77
+ });
78
+ os << " #endif\n " ;
73
79
});
74
- os << " #endif\n " ;
75
80
});
76
81
}
77
82
Original file line number Diff line number Diff line change 39
39
// CHECK-NEXT: #include <string.h>
40
40
// CHECK-NEXT: #endif
41
41
// CHECK-NEXT: #if defined(__cplusplus)
42
+ // CHECK-NEXT: #pragma clang diagnostic push
43
+ // CHECK-NEXT: #pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
42
44
// CHECK-NEXT: #if defined(__arm64e__) && __has_include(<ptrauth.h>)
43
45
// CHECK-NEXT: # include <ptrauth.h>
44
46
// CHECK-NEXT: #else
52
54
// CHECK-NEXT: # endif
53
55
// CHECK-NEXT: #pragma clang diagnostic pop
54
56
// CHECK-NEXT: #endif
57
+ // CHECK-NEXT: #pragma clang diagnostic pop
55
58
// CHECK-NEXT: #endif
56
59
57
60
// CHECK-LABEL: !defined(SWIFT_TYPEDEFS)
You can’t perform that action at this time.
0 commit comments