summaryrefslogtreecommitdiffstats
path: root/lld/ELF/InputFiles.cpp
diff options
context:
space:
mode:
authorEugene Leviant <eleviant@accesssoftek.com>2016-11-21 09:28:07 +0000
committerEugene Leviant <eleviant@accesssoftek.com>2016-11-21 09:28:07 +0000
commit7d7ff80f4b374e325fd988b925982c6a4ca9169a (patch)
treeb8efff5b06e2fb85817d9335f2f068b6b20c132e /lld/ELF/InputFiles.cpp
parenta113a4194c00b9867e2a1091fbd460b625e0d8bf (diff)
downloadbcm5719-llvm-7d7ff80f4b374e325fd988b925982c6a4ca9169a.tar.gz
bcm5719-llvm-7d7ff80f4b374e325fd988b925982c6a4ca9169a.zip
[ELF] Better error reporting for broken archives
Differential revision: https://reviews.llvm.org/D26852 llvm-svn: 287527
Diffstat (limited to 'lld/ELF/InputFiles.cpp')
-rw-r--r--lld/ELF/InputFiles.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp
index 406fedabbf9..72d8148dedf 100644
--- a/lld/ELF/InputFiles.cpp
+++ b/lld/ELF/InputFiles.cpp
@@ -482,7 +482,8 @@ SymbolBody *elf::ObjectFile<ELFT>::createSymbolBody(const Elf_Sym *Sym) {
}
template <class ELFT> void ArchiveFile::parse() {
- File = check(Archive::create(MB), "failed to parse archive");
+ File = check(Archive::create(MB),
+ MB.getBufferIdentifier() + ": failed to parse archive");
// Read the symbol table to construct Lazy objects.
for (const Archive::Symbol &Sym : File->symbols())
OpenPOWER on IntegriCloud