Skip to content

Commit f902339

Browse files
authored
Adjust modulemap to mark mm3dnow as textual header. (#107155)
This avoids issuing the deprecation diagnostic when building the module. Not building it into a module shouldn't cause any negative impacts, since it no longer has any declarations other than the header guard. It's also very rarely included by anything. Addresses #96246 (comment)
1 parent 8e2843b commit f902339

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang/lib/Headers/module.modulemap

+2-4
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ module _Builtin_intrinsics [system] [extern_c] {
6666
textual header "__wmmintrin_aes.h"
6767
textual header "__wmmintrin_pclmul.h"
6868

69+
textual header "mm3dnow.h"
70+
6971
explicit module mm_malloc {
7072
requires !freestanding
7173
header "mm_malloc.h"
@@ -122,10 +124,6 @@ module _Builtin_intrinsics [system] [extern_c] {
122124
header "popcntintrin.h"
123125
}
124126

125-
explicit module mm3dnow {
126-
header "mm3dnow.h"
127-
}
128-
129127
explicit module aes_pclmul {
130128
header "wmmintrin.h"
131129
export aes

0 commit comments

Comments
 (0)