[clang] f902339 - Adjust modulemap to mark mm3dnow as textual header. (#107155)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 13 09:30:08 PDT 2024
Author: James Y Knight
Date: 2024-09-13T12:30:04-04:00
New Revision: f902339d7f24a278b9c77d0226053075bd232ee5
URL: https://github.com/llvm/llvm-project/commit/f902339d7f24a278b9c77d0226053075bd232ee5
DIFF: https://github.com/llvm/llvm-project/commit/f902339d7f24a278b9c77d0226053075bd232ee5.diff
LOG: 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
https://github.com/llvm/llvm-project/pull/96246#issuecomment-2322453809
Added:
Modified:
clang/lib/Headers/module.modulemap
Removed:
################################################################################
diff --git a/clang/lib/Headers/module.modulemap b/clang/lib/Headers/module.modulemap
index 9ffc249c8d1a23..dcaf09e8f2c558 100644
--- a/clang/lib/Headers/module.modulemap
+++ b/clang/lib/Headers/module.modulemap
@@ -66,6 +66,8 @@ module _Builtin_intrinsics [system] [extern_c] {
textual header "__wmmintrin_aes.h"
textual header "__wmmintrin_pclmul.h"
+ textual header "mm3dnow.h"
+
explicit module mm_malloc {
requires !freestanding
header "mm_malloc.h"
@@ -122,10 +124,6 @@ module _Builtin_intrinsics [system] [extern_c] {
header "popcntintrin.h"
}
- explicit module mm3dnow {
- header "mm3dnow.h"
- }
-
explicit module aes_pclmul {
header "wmmintrin.h"
export aes
More information about the cfe-commits
mailing list