The option --prefix-strip is only used when --prefix is not empty.
It removes N initial directories from absolute paths before adding the
prefix.
This matches GNU's objdump behavior.
Paths
| Differential D96679
[llvm-objdump] Implement --prefix-strip option ClosedPublic Authored by tinti on Feb 14 2021, 6:39 PM.
Details Summary The option --prefix-strip is only used when --prefix is not empty. This matches GNU's objdump behavior.
Diff Detail
Event Timeline
tinti added inline comments.
Comment Actions Add range tests.
Comment Actions Reword documentation. Comment Actions Sorry for the delay. I've been off sick for much of the week, and am still catching up on things.
Comment Actions
I hope you are well. Be safe.
This revision is now accepted and ready to land.Mar 7 2021, 11:59 PM This revision was landed with ongoing or failed builds.Mar 24 2021, 6:27 AM Closed by commit rG804ff7f2933f: [llvm-objdump] Implement --prefix-strip option (authored by tinti). · Explain Why This revision was automatically updated to reflect the committed changes. tinti marked an inline comment as done.
Revision Contents
Diff 332959 llvm/docs/CommandGuide/llvm-objdump.rst
llvm/docs/llvm-objdump.1
llvm/test/tools/llvm-objdump/X86/source-interleave-prefix.testllvm/tools/llvm-objdump/llvm-objdump.h
llvm/tools/llvm-objdump/llvm-objdump.cpp
|
Same in the man page.