[all-commits] [llvm/llvm-project] ce3c5d: [ELF] --warn-backrefs: save the referenced InputFi...

Fangrui Song via All-commits all-commits at lists.llvm.org
Thu Oct 22 15:27:36 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ce3c5dae06566eb3ae31e44a459cc8c9cb9e060d
      https://github.com/llvm/llvm-project/commit/ce3c5dae06566eb3ae31e44a459cc8c9cb9e060d
  Author: Fangrui Song <i at maskray.me>
  Date:   2020-10-22 (Thu, 22 Oct 2020)

  Changed paths:
    M lld/ELF/Symbols.cpp
    M lld/ELF/Symbols.h
    A lld/test/ELF/lto/warn-backrefs.ll

  Log Message:
  -----------
  [ELF] --warn-backrefs: save the referenced InputFile *

For a diagnostic `A refers to B` where B refers to a bitcode file, if the
symbol gets optimized out, the user may see `A refers to <internal>`; if the
symbol is retained, the user may see `A refers to lto.tmp`.

Save the reference InputFile * in the DenseMap so that the original filename is
available in reportBackrefs().




More information about the All-commits mailing list