]> granicus.if.org Git - clang/commitdiff
[X86] Prevent inclusion of __wmmintrin_aes.h and __wmmintrin_pclmul.h without includi...
authorCraig Topper <craig.topper@intel.com>
Tue, 22 May 2018 02:02:13 +0000 (02:02 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 22 May 2018 02:02:13 +0000 (02:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@332929 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/__wmmintrin_aes.h
lib/Headers/__wmmintrin_pclmul.h

index fc328036545ba0741273c1c4a73760b103197190..a3f4da24ed1e72e1a1581591187c0580c491e1a2 100644 (file)
  *
  *===-----------------------------------------------------------------------===
  */
+
+#ifndef __WMMINTRIN_H
+#error "Never use <__wmmintrin_aes.h> directly; include <wmmintrin.h> instead."
+#endif
+
 #ifndef __WMMINTRIN_AES_H
 #define __WMMINTRIN_AES_H
 
-#include <emmintrin.h>
-
 /* Define the default attributes for the functions in this file. */
 #define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("aes")))
 
index ebf6a1e666ad5835e13741243ac2e4bf4842b426..8f323c06366d63038c9b4a7242fd55c6b8127780 100644 (file)
  *
  *===-----------------------------------------------------------------------===
  */
+
+#ifndef __WMMINTRIN_H
+#error "Never use <__wmmintrin_pclmul.h> directly; include <wmmintrin.h> instead."
+#endif
+
 #ifndef __WMMINTRIN_PCLMUL_H
 #define __WMMINTRIN_PCLMUL_H