diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2018-02-26 11:07:25 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2018-02-26 11:07:25 +0000 |
commit | b84e158df7ff87d16141d798a47de3dc430036df (patch) | |
tree | 5a2336e43ffec65b41cb4a03feeb9cc84e5a2b5f | |
parent | 9d1b2acaaa224188977e070ecbe51a897121d4ad (diff) | |
download | bcm5719-llvm-b84e158df7ff87d16141d798a47de3dc430036df.tar.gz bcm5719-llvm-b84e158df7ff87d16141d798a47de3dc430036df.zip |
[WebAssembly] Relax constexpr for old standard libraries.
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.
llvm-svn: 326080
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp index e2b518104d1..97d33c4e476 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp @@ -465,7 +465,7 @@ ManagedStatic<RuntimeLibcallSignatureTable> RuntimeLibcallSignatures; 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 |