[all-commits] [llvm/llvm-project] c245c2: [llvm-readelf] Support dumping the BB address map ...

Rahman Lavaee via All-commits all-commits at lists.llvm.org
Mon Mar 8 16:20:42 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c245c21c436b5d29da62a7c416f08f8631f5df95
      https://github.com/llvm/llvm-project/commit/c245c21c436b5d29da62a7c416f08f8631f5df95
  Author: Rahman Lavaee <rahmanl at google.com>
  Date:   2021-03-08 (Mon, 08 Mar 2021)

  Changed paths:
    M llvm/docs/CommandGuide/llvm-readelf.rst
    M llvm/docs/CommandGuide/llvm-readobj.rst
    M llvm/include/llvm/Object/ELF.h
    M llvm/include/llvm/Object/ELFTypes.h
    M llvm/include/llvm/ObjectYAML/ELFYAML.h
    M llvm/lib/Object/ELF.cpp
    A llvm/test/tools/llvm-readobj/ELF/bb-addr-map.test
    M llvm/tools/llvm-readobj/ELFDumper.cpp
    M llvm/tools/llvm-readobj/ObjDumper.h
    M llvm/tools/llvm-readobj/llvm-readobj.cpp
    M llvm/unittests/Object/ELFObjectFileTest.cpp

  Log Message:
  -----------
  [llvm-readelf] Support dumping the BB address map section with --bb-addr-map.

This patch lets llvm-readelf dump the content of the BB address map
section in the following format:
```
Function {
  At: <address>
  BB entries [
    {
      Offset:   <offset>
      Size:     <size>
      Metadata: <metadata>
    },
    ...
  ]
}
...
```

Reviewed By: jhenderson

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




More information about the All-commits mailing list