[llvm] [llvm-cxxfilt][macOS] Don't strip underscores on macOS by default (PR #106233)
Steven Wu via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 27 09:39:23 PDT 2024
================
@@ -165,13 +165,9 @@ int llvm_cxxfilt_main(int argc, char **argv, const llvm::ToolContext &) {
return 0;
}
- // The default value depends on the default triple. Mach-O has symbols
- // prefixed with "_", so strip by default.
if (opt::Arg *A =
Args.getLastArg(OPT_strip_underscore, OPT_no_strip_underscore))
StripUnderscore = A->getOption().matches(OPT_strip_underscore);
----------------
cachemeifyoucan wrote:
Now this can be simplified without if statement.
`StripUnderscore = Args.hasFlag(OPT_strip_underscore, OPT_no_strip_underscore, false)`
https://github.com/llvm/llvm-project/pull/106233
More information about the llvm-commits
mailing list