[all-commits] [llvm/llvm-project] 804ff7: [llvm-objdump] Implement --prefix-strip option

Vinicius Tinti via All-commits all-commits at lists.llvm.org
Wed Mar 24 06:27:04 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 804ff7f2933f2b0845da12c84c439a2e3d8b4e69
      https://github.com/llvm/llvm-project/commit/804ff7f2933f2b0845da12c84c439a2e3d8b4e69
  Author: Vinicius Tinti <viniciustinti at gmail.com>
  Date:   2021-03-24 (Wed, 24 Mar 2021)

  Changed paths:
    M llvm/docs/CommandGuide/llvm-objdump.rst
    M llvm/docs/llvm-objdump.1
    M llvm/test/tools/llvm-objdump/X86/source-interleave-prefix.test
    M llvm/tools/llvm-objdump/llvm-objdump.cpp
    M llvm/tools/llvm-objdump/llvm-objdump.h

  Log Message:
  -----------
  [llvm-objdump] Implement --prefix-strip option

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.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D96679




More information about the All-commits mailing list