[PATCH] D128184: [lld-macho] Show source information for undefined references
    Daniel Bertalan via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Jun 20 04:38:07 PDT 2022
    
    
  
BertalanD created this revision.
Herald added projects: lld-macho, All.
Herald added a reviewer: lld-macho.
BertalanD requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: llvm-commits, sstefan1.
Herald added a project: LLVM.
The error used to look like this:
  ld64.lld: error: undefined symbol: _foo
  >>> referenced by /path/to/bar.o:(symbol _baz+0x4)
If DWARF line information is available, we now show where in the source
the references are coming from:
  ld64.lld: error: unreferenced symbol: _foo
  >>> referenced by: bar.cpp:42 (/path/to/bar.cpp:42)
  >>>                /path/to/bar.o:(symbol _baz+0x4)
Repository:
  rG LLVM Github Monorepo
https://reviews.llvm.org/D128184
Files:
  lld/MachO/Dwarf.cpp
  lld/MachO/Dwarf.h
  lld/MachO/InputFiles.cpp
  lld/MachO/InputFiles.h
  lld/MachO/InputSection.cpp
  lld/MachO/InputSection.h
  lld/MachO/SymbolTable.cpp
  lld/MachO/SyntheticSections.cpp
  lld/MachO/SyntheticSections.h
  lld/test/MachO/invalid/undef-debug.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128184.438339.patch
Type: text/x-patch
Size: 20746 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220620/9a867292/attachment.bin>
    
    
More information about the llvm-commits
mailing list