[all-commits] [llvm/llvm-project] b2f00f: [mac/lld] Include archive name in diagnostics

Nico Weber via All-commits all-commits at lists.llvm.org
Tue Dec 1 20:03:44 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b2f00f24a3c4983a977ff3d975962e7f9dfb887e
      https://github.com/llvm/llvm-project/commit/b2f00f24a3c4983a977ff3d975962e7f9dfb887e
  Author: Nico Weber <thakis at chromium.org>
  Date:   2020-12-01 (Tue, 01 Dec 2020)

  Changed paths:
    M lld/ELF/InputFiles.h
    M lld/MachO/Driver.cpp
    M lld/MachO/InputFiles.cpp
    M lld/MachO/InputFiles.h
    M lld/MachO/LTO.cpp
    M lld/MachO/Writer.cpp
    M lld/test/MachO/invalid/undefined-symbol.s

  Log Message:
  -----------
  [mac/lld] Include archive name in diagnostics

Also, for .o files, include full path as given on link command line.

Before:
    lld: error: undefined symbol [...], referenced from sandbox_logging.o

After:
    lld: error: undefined symbol [...], referenced from libseatbelt.a(sandbox_logging.o)

Move archiveName up to InputFile so we can consistently use toString()
to print InputFiles in diags, and pass it to the ObjFile ctor. This
matches the ELF and COFF ports.

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




More information about the All-commits mailing list