[lld] r263061 - Simplify. NFC.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 9 13:15:18 PST 2016
Author: ruiu
Date: Wed Mar 9 15:15:17 2016
New Revision: 263061
URL: http://llvm.org/viewvc/llvm-project?rev=263061&view=rev
Log:
Simplify. NFC.
In this context, MBRef.getBufferIdentifier() == Path.
Modified:
lld/trunk/ELF/Driver.cpp
Modified: lld/trunk/ELF/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Driver.cpp?rev=263061&r1=263060&r2=263061&view=diff
==============================================================================
--- lld/trunk/ELF/Driver.cpp (original)
+++ lld/trunk/ELF/Driver.cpp Wed Mar 9 15:15:17 2016
@@ -104,9 +104,8 @@ void LinkerDriver::addFile(StringRef Pat
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));
More information about the llvm-commits
mailing list