We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56d75f4 commit ee3c683Copy full SHA for ee3c683
lld/MachO/SyntheticSections.cpp
@@ -1210,7 +1210,8 @@ void SymtabSection::emitEndFunStab(Defined *defined) {
1210
// symbol itself, but if the symbol was folded using a thunk, we retrieve the
1211
// target function body from the thunk.
1212
Defined *SymtabSection::getFuncBodySym(Defined *originalSym) {
1213
- if (originalSym->identicalCodeFoldingKind != Symbol::ICFFoldKind::Thunk)
+ if (originalSym->identicalCodeFoldingKind == Symbol::ICFFoldKind::None ||
1214
+ originalSym->identicalCodeFoldingKind == Symbol::ICFFoldKind::Body)
1215
return originalSym;
1216
1217
return macho::getBodyForThunkFoldedSym(originalSym);
0 commit comments