[all-commits] [llvm/llvm-project] 94921e: [ELF] Define a reportRangeError() overload for thu...

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Sep 14 09:57:49 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 94921e9f8ad04793638e02a6104f63e06ae62b9e
      https://github.com/llvm/llvm-project/commit/94921e9f8ad04793638e02a6104f63e06ae62b9e
  Author: Fangrui Song <i at maskray.me>
  Date:   2020-09-14 (Mon, 14 Sep 2020)

  Changed paths:
    M lld/ELF/Relocations.cpp
    M lld/ELF/Target.h
    M lld/ELF/Thunks.cpp
    M lld/test/ELF/ppc64-toc-call-to-pcrel-long-jump.s

  Log Message:
  -----------
  [ELF] Define a reportRangeError() overload for thunks and tidy up recent PPC64 thunk range errors

Prefer `errorOrWarn` to `fatal` for recoverable errors and graceful degradation
when --noinhibit-exec is specified.

Mention the destination symbol, otherwise the diagnostic is not really actionable.
Two errors are not tested but the patch does not intend to add the coverage.

Reviewed By: grimar

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




More information about the All-commits mailing list