summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2012-09-04 17:42:53 +0000
committerBob Wilson <bob.wilson@apple.com>2012-09-04 17:42:53 +0000
commitd43a50d38e449395447115781d044d44d0205121 (patch)
treef6c2da422dd1e46789171cd6f702b5bba2420923 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentf8c8bfc1fcb6e7fbec7bf4be5642f42a6dc32c26 (diff)
downloadbcm5719-llvm-d43a50d38e449395447115781d044d44d0205121.tar.gz
bcm5719-llvm-d43a50d38e449395447115781d044d44d0205121.zip
Make sure macros in the include subdirectory are not used without being defined.
Rationale: For each preprocessor macro, either the definedness is what's meaningful, or the value is what's meaningful, or both. If definedness is meaningful, we should use #ifdef. If the value is meaningful, we should use and #ifdef interchangeably for the same macro, seems ugly to me, even if undefined macros are zero if used. This also has the benefit that including an LLVM header doesn't prevent you from compiling with -Wundef -Werror. Patch by John Garvin! <rdar://problem/12189979> llvm-svn: 163148
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud