[all-commits] [llvm/llvm-project] 2bf01d: [llvm/Object] - Make ELFObjectFile::getRelocatedSe...

llvm-git-migration via All-commits all-commits at lists.llvm.org
Mon Oct 21 04:05:19 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2bf01dcbaa6723c9c41f8d6005a1f69818ddbd23
      https://github.com/llvm/llvm-project/commit/2bf01dcbaa6723c9c41f8d6005a1f69818ddbd23
  Author: George Rimar <grimar at accesssoftek.com>
  Date:   2019-10-21 (Mon, 21 Oct 2019)

  Changed paths:
    M llvm/include/llvm/Object/ELFObjectFile.h
    M llvm/include/llvm/Object/ObjectFile.h
    M llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
    M llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
    M llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
    M llvm/lib/Object/ObjectFile.cpp
    A llvm/test/tools/llvm-cxxdump/broken-reloc-sec.test
    A llvm/test/tools/llvm-dwarfdump/elf-broken-reloc-target.yaml
    M llvm/test/tools/llvm-objdump/X86/elf-disassemble-relocs.test
    M llvm/test/tools/llvm-objdump/relocations-elf.test
    M llvm/test/tools/llvm-readobj/stack-sizes.test
    M llvm/tools/llvm-cxxdump/llvm-cxxdump.cpp
    M llvm/tools/llvm-objdump/llvm-objdump.cpp
    M llvm/tools/llvm-readobj/ELFDumper.cpp

  Log Message:
  -----------
  [llvm/Object] - Make ELFObjectFile::getRelocatedSection return Expected<section_iterator>

It returns just a section_iterator currently and have a report_fatal_error call inside.
This change adds a way to return errors and handle them on caller sides.

The patch also changes/improves current users and adds test cases.

Differential revision: https://reviews.llvm.org/D69167

llvm-svn: 375408




More information about the All-commits mailing list