This change add an option to llvm-ifs to hide undefined symbols from its output.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I forgot to attach the test into git in the previous commit. They were attached int this change.
llvm/lib/InterfaceStub/IFSHandler.cpp | ||
---|---|---|
331 | I was plan to make it generic so next time if we need to strip any more symbols based on a different metric, I don't need to write a new function. But I think it does not really matter since it is quite simple. |
llvm/tools/llvm-ifs/llvm-ifs.cpp | ||
---|---|---|
91 | Small suggestion, I'd call this just strip-undefined, the symbol part is already implied and it better matches spelling used by tools like llvm-objcopy. |
It's not clear why this function takes the various arguments since it has only one call site that uses fixed values.