summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2015-04-02 17:43:35 +0000
committerReid Kleckner <reid@kleckner.net>2015-04-02 17:43:35 +0000
commitf1a6414b49778a108751be15779d6639bf1e5486 (patch)
tree2f0aa30df60ccb6b77c755dbe92f7946c19a0a57 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent03dc366e79cd01afe0bbfad2a7ede3087d6c9356 (diff)
downloadbcm5719-llvm-f1a6414b49778a108751be15779d6639bf1e5486.tar.gz
bcm5719-llvm-f1a6414b49778a108751be15779d6639bf1e5486.zip
Add an LLVM_PTR_SIZE macro to make LLVM_ALIGNAS more useful
MSVC 2013 requires the argument to __declspec(align()) to be an integer constant expression that doesn't involve any identifiers like sizeof. For GCC and Clang, LLVM_PTR_SIZE is equivalent to __SIZEOF_POINTER__, which dates back to GCC 4.6 and Clang 2010. If that's not available, we get sizeof(void*), which works with alignas() and __attribute__((aligned())). For MSVC, LLVM_PTR_SIZE is 4 or 8 depending on _WIN64. llvm-svn: 233929
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud