summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2018-05-23 20:59:46 +0000
committerRaphael Isemann <teemperor@gmail.com>2018-05-23 20:59:46 +0000
commit83bdfe5e51af7bfd484e5e22dfdcd0786c2ef702 (patch)
treeac2f760342e1fc88cf3124b8864c1ddc9068727b /clang/lib
parent4925392897281c184cbf68297e921e2f28ce28de (diff)
downloadbcm5719-llvm-83bdfe5e51af7bfd484e5e22dfdcd0786c2ef702.tar.gz
bcm5719-llvm-83bdfe5e51af7bfd484e5e22dfdcd0786c2ef702.zip
[modules] Mark __wmmintrin_pclmul.h/__wmmintrin_aes.h as textual
Summary: Since clang r332929 these two headers throw errors when included from somewhere else than their wrapper header. It seems marking them as textual is the best way to fix the builds. Fixes this new module build error: While building module '_Builtin_intrinsics' imported from ...: In file included from <module-includes>:2: In file included from lib/clang/7.0.0/include/immintrin.h:54: In file included from lib/clang/7.0.0/include/wmmintrin.h:29: lib/clang/7.0.0/include/__wmmintrin_aes.h:25:2: error: "Never use <__wmmintrin_aes.h> directly; include <wmmintrin.h> instead." #error "Never use <__wmmintrin_aes.h> directly; include <wmmintrin.h> instead." Reviewers: rsmith, v.g.vassilev, craig.topper Reviewed By: craig.topper Subscribers: craig.topper, cfe-commits Differential Revision: https://reviews.llvm.org/D47277 llvm-svn: 333123
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Headers/module.modulemap11
1 files changed, 3 insertions, 8 deletions
diff --git a/clang/lib/Headers/module.modulemap b/clang/lib/Headers/module.modulemap
index 0f10dd4c081..b26ff5ebb58 100644
--- a/clang/lib/Headers/module.modulemap
+++ b/clang/lib/Headers/module.modulemap
@@ -71,6 +71,9 @@ module _Builtin_intrinsics [system] [extern_c] {
textual header "sgxintrin.h"
textual header "ptwriteintrin.h"
+ textual header "__wmmintrin_aes.h"
+ textual header "__wmmintrin_pclmul.h"
+
explicit module mm_malloc {
requires !freestanding
header "mm_malloc.h"
@@ -136,14 +139,6 @@ module _Builtin_intrinsics [system] [extern_c] {
export aes
export pclmul
}
-
- explicit module aes {
- header "__wmmintrin_aes.h"
- }
-
- explicit module pclmul {
- header "__wmmintrin_pclmul.h"
- }
}
explicit module systemz {
OpenPOWER on IntegriCloud