OSDN Git Service

[LLD][COFF] Cleanup error messages / add more coverage tests
authorAlexandre Ganea <alexandre.ganea@ubisoft.com>
Mon, 10 Sep 2018 13:51:21 +0000 (13:51 +0000)
committerAlexandre Ganea <alexandre.ganea@ubisoft.com>
Mon, 10 Sep 2018 13:51:21 +0000 (13:51 +0000)
commit6aabdc9fdd496416f60d518bc60f74b3b9db0607
tree3418763749e0ef5b851a617af529cb808ec42402
parentd94f77a49e987833e558c5c3499dca3d4bab5759
[LLD][COFF] Cleanup error messages / add more coverage tests

- Log the reason for a PDB or precompiled-OBJ load failure
- Properly handle out-of-date PDB or precompiled-OBJ signature by displaying a corresponding error
- Slightly change behavior on PDB failure: any subsequent load attempt from another OBJ would result in the same error message being logged
- Slightly change behavior on PDB failure: retry with filename only if previous error was ENOENT ("no such file or directory")
- Tests: a. for native PDB errors; b. cover all the cases above

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@341825 91177308-0d34-0410-b5e6-96231b3b80d8
lib/DebugInfo/PDB/GenericError.cpp