[PATCH] D45467: [wip] COFF: Friendlier undefined symbol errors.

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 9 16:36:57 PDT 2018


pcc created this revision.
pcc added reviewers: zturner, ruiu.
Herald added subscribers: JDevlieghere, aprantl.

This change does three things:

- Try to find the file and line number information of an undefined symbol reference by reading codeview debug info.
- Try to find the name of the function or global variable with the undefined symbol reference by searching the object file's symbol table.
- Prints the information in the same style as the ELF linker.

TODO: Update tests.


https://reviews.llvm.org/D45467

Files:
  lld/COFF/Chunks.h
  lld/COFF/InputFiles.cpp
  lld/COFF/PDB.cpp
  lld/COFF/PDB.h
  lld/COFF/SymbolTable.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45467.141765.patch
Type: text/x-patch
Size: 8968 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180409/8a83db6d/attachment.bin>


More information about the llvm-commits mailing list