aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/IRSymtab.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2025-06-27 17:40:43 +0900
committerGitHub <noreply@github.com>2025-06-27 17:40:43 +0900
commitb88e1f6a79cbe2672dd6dbb926ae7ca02ce537a5 (patch)
tree2ad285bc4d306b8c77f8c04dab0fedc9ad967c0a /llvm/lib/Object/IRSymtab.cpp
parent3fdf46ad60f1747e8ea1cced2e67dd36f29fc43b (diff)
downloadllvm-b88e1f6a79cbe2672dd6dbb926ae7ca02ce537a5.zip
llvm-b88e1f6a79cbe2672dd6dbb926ae7ca02ce537a5.tar.gz
llvm-b88e1f6a79cbe2672dd6dbb926ae7ca02ce537a5.tar.bz2
TableGen: Generate enum for runtime libcall implementations (#144973)
Work towards separating the ABI existence of libcalls vs. the lowering selection. Set libcall selection through enums, rather than through raw string names.
Diffstat (limited to 'llvm/lib/Object/IRSymtab.cpp')
-rw-r--r--llvm/lib/Object/IRSymtab.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Object/IRSymtab.cpp b/llvm/lib/Object/IRSymtab.cpp
index 2f25c77..2579fa3 100644
--- a/llvm/lib/Object/IRSymtab.cpp
+++ b/llvm/lib/Object/IRSymtab.cpp
@@ -218,9 +218,9 @@ static DenseSet<StringRef> buildPreservedSymbolsSet(const Triple &TT) {
std::end(PreservedSymbols));
// FIXME: Do we need to pass in ABI fields from TargetOptions?
RTLIB::RuntimeLibcallsInfo Libcalls(TT);
- for (const char *Name : Libcalls.getLibcallNames()) {
- if (Name)
- PreservedSymbolSet.insert(Name);
+ for (RTLIB::LibcallImpl Impl : Libcalls.getLibcallImpls()) {
+ if (Impl != RTLIB::Unsupported)
+ PreservedSymbolSet.insert(Libcalls.getLibcallImplName(Impl));
}
return PreservedSymbolSet;
}