[all-commits] [llvm/llvm-project] d61341: [lld-macho] Group undefined symbol diagnostics by ...

Daniel Bertalan via All-commits all-commits at lists.llvm.org
Tue Jun 14 13:38:28 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d61341768cf0cff7ceeaddecc2f769b5c1b901c4
      https://github.com/llvm/llvm-project/commit/d61341768cf0cff7ceeaddecc2f769b5c1b901c4
  Author: Daniel Bertalan <dani at danielbertalan.dev>
  Date:   2022-06-14 (Tue, 14 Jun 2022)

  Changed paths:
    M lld/MachO/SymbolTable.cpp
    M lld/MachO/SymbolTable.h
    M lld/MachO/Writer.cpp
    A lld/test/MachO/invalid/undef-multi.s

  Log Message:
  -----------
  [lld-macho] Group undefined symbol diagnostics by symbol

ld64.lld used to print the "undefined symbol" line for each reference to
an undefined symbol previously:

  ld64.lld: error: undefined symbol: _foo
  >>> referenced by /path/to/bar.o:(symbol _baz+0x0)

  ld64.lld: error: undefined symbol: _foo
  >>> referenced by /path/to/bar.o:(symbol _quux+0x1)

Now they are deduplicated:

  ld64.lld: error: undefined symbol: _foo
  >>> referenced by /path/to/bar.o:(symbol _baz+0x0)
  >>> referenced by /path/to/bar.o:(symbol _quux+0x1)

As with the other lld ports, only the first 3 references are printed.

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




More information about the All-commits mailing list