summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2016-02-10 19:07:47 +0000
committerReid Kleckner <rnk@google.com>2016-02-10 19:07:47 +0000
commit66b780740311bbfe9f7d93a2b345c68507d76014 (patch)
treedf68a9a649f05dc0e20e40f05b62d6366ccc5f64 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent38c177ac1d754cde4a09d46beee547c9cd5ca5be (diff)
downloadbcm5719-llvm-66b780740311bbfe9f7d93a2b345c68507d76014.tar.gz
bcm5719-llvm-66b780740311bbfe9f7d93a2b345c68507d76014.zip
Enable constexpr on Visual Studio 2015, add support for two equivalent attributes
Patch by Alexander Riccio This patch enables `constexpr` on Visual Studio 2015 by adding `|| LLVM_MSC_PREREQ(1900)` to the preprocessor `#if` statement. Since VS2013 doesn't support `constexpr`, that's purposely excluded. The `LLVM_CONSTEXPR` macro is used in ~25 places. I also added the MSVC/SAL equivalent of: - `__attribute__((__warn_unused_result__))` as an `LLVM_ATTRIBUTE_UNUSED_RESULT` definition - `__attribute__((returns_nonnull))` as an `LLVM_ATTRIBUTE_RETURNS_NONNULL` definition ...in case anybody ever decides to run `/analyze` on LLVM (probably myself, if anybody) Reviewers: rnk, aaron.ballman Differential Revision: http://reviews.llvm.org/D16751 llvm-svn: 260410
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud