diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2025-06-27 17:40:43 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-27 17:40:43 +0900 |
commit | b88e1f6a79cbe2672dd6dbb926ae7ca02ce537a5 (patch) | |
tree | 2ad285bc4d306b8c77f8c04dab0fedc9ad967c0a /llvm/lib/Object/IRSymtab.cpp | |
parent | 3fdf46ad60f1747e8ea1cced2e67dd36f29fc43b (diff) | |
download | llvm-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.cpp | 6 |
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; } |