]> granicus.if.org Git - clang/commit
Add missing include guards into headers in lib/Headers. While it may appear
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 14 Jul 2013 05:41:45 +0000 (05:41 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 14 Jul 2013 05:41:45 +0000 (05:41 +0000)
commit7cb4fae8da8f541f43d39896c989b06c69fd7821
treea260f3faba7e467eaa4eeed60bdeceb12390917f
parentace21ba7ba8a834a711154d8d1f29c12568dbc54
Add missing include guards into headers in lib/Headers. While it may appear
that these headers should not be included more than once, they are in fact
included twice when building our builtins module (in order for it to generate
submodules for them), and without this, any modular build enabling AVX and
including any builtin header fails.

Testing this is tricky because including any of these headers in a modular
build is liable to fail, due to unrelated builtin headers in the same module
including headers which might not be available on the system running the tests.
Suggestion on that front are welcome (but we're getting close to being able to
run a buildbot that has modules enabled for all tests, which would nicely solve
the testing problem).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186275 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Headers/avx2intrin.h
lib/Headers/avxintrin.h
lib/Headers/rdseedintrin.h
lib/Headers/rtmintrin.h