[modules] Make the tweak to avoid circular inclusion of emmintrin.h and
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 21 Apr 2016 01:46:37 +0000 (01:46 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 21 Apr 2016 01:46:37 +0000 (01:46 +0000)
commite0fa4c83b2256337248cbe4c8bee6b0e4de9120f
tree1938c9e0517926e51ebf1419dacff14ebc4cf5e2
parent0d6a90dfc3ce76e318793b055b1923da6d8a1b01
[modules] Make the tweak to avoid circular inclusion of emmintrin.h and
xmmintrin.h a bit more directed. If for whatever reason modules are enabled but
we textually include one of these headers, don't deploy the special case for
modules. To make this work cleanly, extend __building_module to be defined
even when modules is disabled.

llvm-svn: 266945
clang/lib/Headers/xmmintrin.h
clang/lib/Lex/PPMacroExpansion.cpp