[llvm] TargetLibraryInfo: Bring FreeBSD function list up to date (PR #144846)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 14 03:38:10 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) {
----------------
arsenm wrote:
Unrelated change, and missing tests
https://github.com/llvm/llvm-project/pull/144846
More information about the llvm-commits
mailing list