[all-commits] [llvm/llvm-project] 490f6f: [NFC][llvm-readobj] Pull common code into a helper

James Henderson via All-commits all-commits at lists.llvm.org
Fri Nov 1 04:50:17 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 490f6f3211cb54d109a14be78520441b711af669
      https://github.com/llvm/llvm-project/commit/490f6f3211cb54d109a14be78520441b711af669
  Author: James Henderson <jh7370 at my.bristol.ac.uk>
  Date:   2019-11-01 (Fri, 01 Nov 2019)

  Changed paths:
    M llvm/tools/llvm-readobj/ELFDumper.cpp

  Log Message:
  -----------
  [NFC][llvm-readobj] Pull common code into a helper

This will make planned changes to this code easier to make.

Reviewed by: MaskRay, grimar

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


  Commit: d835bc004af25d3431977047e13d1bbc5cef5b91
      https://github.com/llvm/llvm-project/commit/d835bc004af25d3431977047e13d1bbc5cef5b91
  Author: James Henderson <jh7370 at my.bristol.ac.uk>
  Date:   2019-11-01 (Fri, 01 Nov 2019)

  Changed paths:
    M llvm/test/tools/llvm-readobj/elf-symbol-shndx.test
    M llvm/tools/llvm-readobj/ELFDumper.cpp

  Log Message:
  -----------
  [NFC][llvm-readobj] Split getSectionIndexName function into two

getSectionIndexName was trying to fetch two things at once, which led to
a somewhat tricky to understand interface involving passing output
parameters in, and also made it hard to return Errors further up the
stack.

This change is in preparation for changing the error handling.

Additionally, update a related test now that yaml2obj supports
SHT_SYMTAB_SHNDX properly (see d3963051c490), and add missing LLVM-style
coverage for symbols with shndx SHN_XINDEX. This test (after fixing)
caught a mistake in my first attempt at this patch, hence I'm including
it as part of this patch.

Reviewed by: grimar, MaskRay

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


Compare: https://github.com/llvm/llvm-project/compare/5ec34dfdf733...d835bc004af2


More information about the All-commits mailing list