This will still be constexpr when the standard library supports it, but
doesn't force constexpr. Old libraries will get a global constructor,
which is not too bad.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@326080
91177308-0d34-0410-b5e6-
96231b3b80d8
struct StaticLibcallNameMap {
StringMap<RTLIB::Libcall> Map;
StaticLibcallNameMap() {
- static constexpr std::pair<const char *, RTLIB::Libcall> NameLibcalls[] = {
+ static const std::pair<const char *, RTLIB::Libcall> NameLibcalls[] = {
#define HANDLE_LIBCALL(code, name) {(const char *)name, RTLIB::code},
#include "llvm/CodeGen/RuntimeLibcalls.def"
#undef HANDLE_LIBCALL