[llvm] TargetLibraryInfo: Bring FreeBSD function list up to date (PR #144846)

Gleb Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 14 04:23:09 PDT 2025


================
@@ -168,8 +168,12 @@ void SDKNameMap::maybeInsertSymbol(const SymbolRef &S, const ObjectFile &O) {
   uint32_t Flags = unwrapIgnoreError(S.getFlags());
   section_iterator Section = unwrapIgnoreError(S.getSection(),
                                                /*Default=*/O.section_end());
-  if (Type == SymbolRef::ST_Function && (Flags & SymbolRef::SF_Global) &&
-      Section != O.section_end()) {
+  bool IsRegularFunction = Type == SymbolRef::ST_Function &&
+                           (Flags & SymbolRef::SF_Global) &&
+                           Section != O.section_end();
+  bool IsIFunc =
+      Type == SymbolRef::ST_Other && (Flags & SymbolRef::SF_Indirect);
+  if (IsRegularFunction || IsIFunc) {
----------------
arrowd wrote:

Unrelated as in "submit this commit as a separate PR"?

https://github.com/llvm/llvm-project/pull/144846


More information about the llvm-commits mailing list