Reid Kleckner ca4ed882f4 Reland "Use Clang's __has_* macros in Compiler.h ..." with fixes
This reverts r185841 and relands r185831 without using
__has_attribute(const).

Clang prior to r161767 (between 3.1 and 3.2) does not accept
__has_attribute(const) due to rdar://10253857.  __const and __const__
are both keyword aliases of const, so they don't work either.

I was able to repro the buildbot failure using clang 3.1 and this patch
fixes it.  Various important versions of XCode use clang 2.9-ish, so
this workaround is necessary.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185850 91177308-0d34-0410-b5e6-96231b3b80d8
2013-07-08 19:06:25 +00:00
..
2013-07-02 04:15:28 +00:00
2013-05-01 21:01:06 +00:00
2013-03-18 23:04:30 +00:00
2013-07-08 16:55:56 +00:00
2013-06-11 22:21:28 +00:00
2013-06-13 21:16:58 +00:00
2013-05-21 20:36:13 +00:00
2013-02-26 18:05:31 +00:00