Skip to content

[lld-macho] Document '-icf' flag options #123372

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions lld/MachO/Options.td
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,12 @@ def print_dylib_search: Flag<["--"], "print-dylib-search">,
HelpText<"Print which paths lld searched when trying to find dylibs">,
Group<grp_lld>;
def icf_eq: Joined<["--"], "icf=">,
HelpText<"Set level for identical code folding (default: none)">,
MetaVarName<"[none,safe,all]">,
HelpText<"Set level for identical code folding (default: none). Possible values:\n"
" none - Disable ICF\n"
" safe - Only folds non-address significant functions (as described by `__addrsig` section)\n"
" safe_thunks - Like safe, but replaces address-significant functions with thunks\n"
" all - Fold all identical functions">,
MetaVarName<"[none,safe,safe_thunks,all]">,
Group<grp_lld>;
def keep_icf_stabs: Joined<["--"], "keep-icf-stabs">,
HelpText<"Generate STABS entries for symbols folded by ICF. These entries can then be used by dsymutil to discover the address range where folded symbols are located.">,
Expand Down
Loading