]> granicus.if.org Git - clang/commit
Emit static constexpr member as available_externally definition
authorMehdi Amini <joker.eph@gmail.com>
Sun, 27 Aug 2017 20:24:09 +0000 (20:24 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Sun, 27 Aug 2017 20:24:09 +0000 (20:24 +0000)
commit0682709a5e5c9df240e0fd7bccd8f7115b25506b
tree43fe7b4ca86bcf3157762a69490778fda14a88ff
parentdd5ef8f2a0cf7b27c33854a3017a15ce05c6b19a
Emit static constexpr member as available_externally definition

By exposing the constant initializer, the optimizer can fold many
of these constructs.

Differential Revision: https://reviews.llvm.org/D34992

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311857 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp
test/CodeGenCXX/cxx11-extern-constexpr.cpp [new file with mode: 0644]