summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2015-03-13 08:29:54 +0000
committerChandler Carruth <chandlerc@gmail.com>2015-03-13 08:29:54 +0000
commitc2132d8f3325ba4dbaa0ee87567f479e9aa9e425 (patch)
treee61b14f2f59c03e40bc719465dd3b8bb11c407b3 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentee1d76f361ddbfdb3ed43f25f767ebde47ff70a9 (diff)
downloadbcm5719-llvm-c2132d8f3325ba4dbaa0ee87567f479e9aa9e425.tar.gz
bcm5719-llvm-c2132d8f3325ba4dbaa0ee87567f479e9aa9e425.zip
[Modules] Teach Clang to survive ambiguous macros which come from system
headers even if they arrived when merging non-system modules. The idea of this code is that we don't want to warn the user about macros defined multiple times by their system headers with slightly different definitions. We should have this behavior if either the macro comes from a system module, or the definition within the module comes from a system header. Previously, we would warn on ambiguous macros being merged when they came from a users modules even though they only showed up via system headers. By surviving this we can handle common system header macro differences like differing 'const' qualification of pointers due to some headers predating 'const' being valid in C code, even when those systems headers are pre-built into a system module. Differential Revision: http://reviews.llvm.org/D8310 llvm-svn: 232149
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud