summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-03-09 21:15:17 +0000
committerRui Ueyama <ruiu@google.com>2016-03-09 21:15:17 +0000
commit2b4df612ecb3503cb849231f96e2b90f8db546fe (patch)
tree2c73b27de34f38ee18b7bcbf9010bf6c5fa7ba74
parent7f96b3915190af319cef159ca3f255fed888e1ec (diff)
downloadbcm5719-llvm-2b4df612ecb3503cb849231f96e2b90f8db546fe.tar.gz
bcm5719-llvm-2b4df612ecb3503cb849231f96e2b90f8db546fe.zip
Simplify. NFC.
In this context, MBRef.getBufferIdentifier() == Path. llvm-svn: 263061
-rw-r--r--lld/ELF/Driver.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp
index 720be75c716..7b1ee794601 100644
--- a/lld/ELF/Driver.cpp
+++ b/lld/ELF/Driver.cpp
@@ -104,9 +104,8 @@ void LinkerDriver::addFile(StringRef Path) {
return;
case file_magic::archive:
if (WholeArchive) {
- StringRef S = MBRef.getBufferIdentifier();
for (MemoryBufferRef MB : getArchiveMembers(MBRef))
- Files.push_back(createObjectFile(MB, S));
+ Files.push_back(createObjectFile(MB, Path));
return;
}
Files.push_back(make_unique<ArchiveFile>(MBRef));
OpenPOWER on IntegriCloud