diff options
| author | Martin Storsjo <martin@martin.st> | 2019-08-20 18:56:48 +0000 |
|---|---|---|
| committer | Martin Storsjo <martin@martin.st> | 2019-08-20 18:56:48 +0000 |
| commit | 8a91aa53a062a03e19e26e896ffdd10ffc67801b (patch) | |
| tree | 64473f9ccc841546be5b3fbc8db675d96f2438ab | |
| parent | 1271521ed887308abeb740f2e738c2d3333febc8 (diff) | |
| download | bcm5719-llvm-8a91aa53a062a03e19e26e896ffdd10ffc67801b.tar.gz bcm5719-llvm-8a91aa53a062a03e19e26e896ffdd10ffc67801b.zip | |
[COFF] Print the file name on errors writing the pdb file
This avoids confusing contextless error messages such as "No such file
or directory" if e.g. the pdb output file should be written to a
nonexistent directory. (This can happen with linkrepro scripts, at least
old ones.)
Differential Revision: https://reviews.llvm.org/D66466
llvm-svn: 369425
| -rw-r--r-- | lld/COFF/PDB.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lld/COFF/PDB.cpp b/lld/COFF/PDB.cpp index 1dc13532c31..25952b59234 100644 --- a/lld/COFF/PDB.cpp +++ b/lld/COFF/PDB.cpp @@ -1693,6 +1693,7 @@ void PDBLinker::addSections(ArrayRef<OutputSection *> outputSections, } void PDBLinker::commit(codeview::GUID *guid) { + ExitOnError exitOnErr((config->pdbPath + ": ").str()); // Write to a file. exitOnErr(builder.commit(config->pdbPath, guid)); } |

