COFF: Friendlier undefined symbol errors.
authorPeter Collingbourne <peter@pcc.me.uk>
Tue, 17 Apr 2018 23:32:33 +0000 (23:32 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Tue, 17 Apr 2018 23:32:33 +0000 (23:32 +0000)
commit3108802f1696a3635d7e1edcc3fbe523381ed5df
tree2c976b7496b02f182547448acbf102f6421cfd26
parentb842725c1d8922e0e76de64083f30afbad1bff91
COFF: Friendlier undefined symbol errors.

Summary:
This change does three things:
- Try to find the file and line number 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.

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

llvm-svn: 330235
lld/COFF/Chunks.h
lld/COFF/InputFiles.cpp
lld/COFF/PDB.cpp
lld/COFF/PDB.h
lld/COFF/SymbolTable.cpp
lld/test/COFF/filename-casing.s
lld/test/COFF/force.test
lld/test/COFF/nodefaultlib.test
lld/test/COFF/undefined-symbol-cv.s [new file with mode: 0644]
lld/test/COFF/undefined-symbol.s [new file with mode: 0644]