diff options
author | gulfemsavrun <gulfem@google.com> | 2025-08-15 13:32:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-15 13:32:27 -0700 |
commit | 334e9bf2dd01fbbfe785624c0de477b725cde6f2 (patch) | |
tree | 2c7d966790e65c9c0934646d3ddb21f2b5231c5d /llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp | |
parent | 5c51a88f193a4753818b31ca186b3a1ef1a07ecf (diff) | |
download | llvm-334e9bf2dd01fbbfe785624c0de477b725cde6f2.zip llvm-334e9bf2dd01fbbfe785624c0de477b725cde6f2.tar.gz llvm-334e9bf2dd01fbbfe785624c0de477b725cde6f2.tar.bz2 |
Revert "RuntimeLibcalls: Generate table of libcall name lengths (#153… (#153864)
…210)"
This reverts commit 9a14b1d254a43dc0d4445c3ffa3d393bca007ba3.
Revert "RuntimeLibcalls: Return StringRef for libcall names (#153209)"
This reverts commit cb1228fbd535b8f9fe78505a15292b0ba23b17de.
Revert "TableGen: Emit statically generated hash table for runtime
libcalls (#150192)"
This reverts commit 769a9058c8d04fc920994f6a5bbb03c8a4fbcd05.
Reverted three changes because of a CMake error while building llvm-nm
as reported in the following PR:
https://github.com/llvm/llvm-project/pull/150192#issuecomment-3192223073
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp index 45b0e7d..4548a75 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp @@ -533,8 +533,8 @@ struct StaticLibcallNameMap { // different libcalls. RTLIB::RuntimeLibcallsInfo RTCI(TT); for (RTLIB::Libcall LC : RTLIB::libcalls()) { - StringRef NameLibcall = RTCI.getLibcallName(LC); - if (!NameLibcall.empty() && + const char *NameLibcall = RTCI.getLibcallName(LC); + if (NameLibcall != nullptr && getRuntimeLibcallSignatures().Table[LC] != unsupported) { assert(!Map.contains(NameLibcall) && "duplicate libcall names in name map"); |