aboutsummaryrefslogtreecommitdiff
path: root/lldb/scripts/Python/python-extensions.swig
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2013-07-08 15:31:29 +0000
committerReid Kleckner <reid@kleckner.net>2013-07-08 15:31:29 +0000
commit77c9fe5c0547b26acdbd0da9590f6b8d588d1ca1 (patch)
tree48af7197a79c01630a6c81091164dac2d15d6f58 /lldb/scripts/Python/python-extensions.swig
parent9a7801566f9c9ace5cc73c4681b857ad18dbbddf (diff)
downloadllvm-77c9fe5c0547b26acdbd0da9590f6b8d588d1ca1.zip
llvm-77c9fe5c0547b26acdbd0da9590f6b8d588d1ca1.tar.gz
llvm-77c9fe5c0547b26acdbd0da9590f6b8d588d1ca1.tar.bz2
Use Clang's __has_* macros in Compiler.h to test for features
When targetting Windows, clang does not define __GNUC__, and as a result we don't use our attributes with it. This leads to warnings about unused functions that are already annotated with LLVM_ATTRIBUTE_UNUSED. Rather than testing for __clang__, we can use its __has_attribute and __has_builtin macros directlty. While I'm here, conditionally define and use __GNUC_PREREQ for gcc version checks. Spelling the check out with three comparisons is verbose and error prone. Reviewers: aaron.ballman Differential Revision: http://llvm-reviews.chandlerc.com/D1080 llvm-svn: 185831
Diffstat (limited to 'lldb/scripts/Python/python-extensions.swig')
0 files changed, 0 insertions, 0 deletions