diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-04-16 19:08:41 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-04-16 19:08:41 +0000 |
commit | b10e615c44ebd03529017af928b7f37bdb0858a8 (patch) | |
tree | c91de631fa787ef57e5c9384278bbd7674a83492 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 24110cc73388ee0baec97bede6340477eb733dcc (diff) | |
download | bcm5719-llvm-b10e615c44ebd03529017af928b7f37bdb0858a8.tar.gz bcm5719-llvm-b10e615c44ebd03529017af928b7f37bdb0858a8.zip |
rewrite-includes: Rewrite __has_include(_next) to get rid of a host dependency.
This broke e.g. compiling a crash report from a glibc system on Darwin. Sadly,
the implementation had to game the lexer a lot as we're not using a real
preprocessor here. It also doesn't handle special cases like arbitrary macros in
__has_include, but since this macro isn't common outside of clang's headers we
can get away with that.
Fixes PR14422.
Differential Revision: http://llvm-reviews.chandlerc.com/D594
llvm-svn: 179616
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions