r183585 - Even in a modules world, people will depend on the weird xmmintrin.h -> emmintrin.h forwarding.
Douglas Gregor
dgregor at apple.com
Fri Jun 7 15:49:44 PDT 2013
Author: dgregor
Date: Fri Jun 7 17:49:44 2013
New Revision: 183585
URL: http://llvm.org/viewvc/llvm-project?rev=183585&view=rev
Log:
Even in a modules world, people will depend on the weird xmmintrin.h -> emmintrin.h forwarding.
Modified:
cfe/trunk/lib/Headers/module.map
cfe/trunk/lib/Headers/xmmintrin.h
Modified: cfe/trunk/lib/Headers/module.map
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/module.map?rev=183585&r1=183584&r2=183585&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/module.map (original)
+++ cfe/trunk/lib/Headers/module.map Fri Jun 7 17:49:44 2013
@@ -44,6 +44,7 @@ module _Builtin_intrinsics [system] {
explicit module sse {
requires sse
export mmx
+ export * // note: for hackish <emmintrin.h> dependency
header "xmmintrin.h"
}
Modified: cfe/trunk/lib/Headers/xmmintrin.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/xmmintrin.h?rev=183585&r1=183584&r2=183585&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/xmmintrin.h (original)
+++ cfe/trunk/lib/Headers/xmmintrin.h Fri Jun 7 17:49:44 2013
@@ -983,12 +983,10 @@ do { \
#define _m_ _mm_
#define _m_ _mm_
-#if !__has_feature(modules)
/* Ugly hack for backwards-compatibility (compatible with gcc) */
#ifdef __SSE2__
#include <emmintrin.h>
#endif
-#endif
#endif /* __SSE__ */
More information about the cfe-commits
mailing list