[llvm] r326080 - [WebAssembly] Relax constexpr for old standard libraries.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 26 03:07:25 PST 2018
Author: d0k
Date: Mon Feb 26 03:07:25 2018
New Revision: 326080
URL: http://llvm.org/viewvc/llvm-project?rev=326080&view=rev
Log:
[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.
Modified:
llvm/trunk/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp?rev=326080&r1=326079&r2=326080&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp Mon Feb 26 03:07:25 2018
@@ -465,7 +465,7 @@ ManagedStatic<RuntimeLibcallSignatureTab
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
More information about the llvm-commits
mailing list