diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2017-01-25 03:35:28 +0000 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2017-01-25 03:35:28 +0000 |
| commit | 5b8a1bd4a2409f9ae5715911ba9c14203aeccf5e (patch) | |
| tree | 75e0317ed1ba045b31cbe381b0fa016a9970a9e5 /llvm/tools/gold/gold-plugin.cpp | |
| parent | eb185e1f644105aadcc3fc1701dc2bbeafb05eae (diff) | |
| download | bcm5719-llvm-5b8a1bd4a2409f9ae5715911ba9c14203aeccf5e.tar.gz bcm5719-llvm-5b8a1bd4a2409f9ae5715911ba9c14203aeccf5e.zip | |
gold-plugin: Add the file path to the file open error diagnostic.
llvm-svn: 293013
Diffstat (limited to 'llvm/tools/gold/gold-plugin.cpp')
| -rw-r--r-- | llvm/tools/gold/gold-plugin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp index 50e102b0459..1ac542b2876 100644 --- a/llvm/tools/gold/gold-plugin.cpp +++ b/llvm/tools/gold/gold-plugin.cpp @@ -826,7 +826,8 @@ static ld_plugin_status allSymbolsReadHook() { std::error_code EC = sys::fs::openFileForWrite(Filenames[Task], FD, sys::fs::F_None); if (EC) - message(LDPL_FATAL, "Could not open file: %s", EC.message().c_str()); + message(LDPL_FATAL, "Could not open file %s: %s", Filenames[Task].c_str(), + EC.message().c_str()); return llvm::make_unique<lto::NativeObjectStream>( llvm::make_unique<llvm::raw_fd_ostream>(FD, true)); }; |

