Make VTs and UnicodeCharSet ctors constexpr if the compiler supports it.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 1 Mar 2015 18:10:07 +0000 (18:10 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 1 Mar 2015 18:10:07 +0000 (18:10 +0000)
commitf5582d938e909978ca7ad2c6f254c409b87ec46a
tree28dc48ed222313a12cb155939bd8c1a530defd6f
parent30fa8739586066b0717560964a3539ea6258ec76
Make VTs and UnicodeCharSet ctors constexpr if the compiler supports it.

There are static variables of this around that we really want to go
into a read-only segment. Sadly compilers are not smart enough to figure
that out without constexpr.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230895 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineValueType.h
include/llvm/CodeGen/ValueTypes.h
include/llvm/Support/UnicodeCharRanges.h