mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-11 12:16:07 +00:00
Simplify. NFC.
In this context, MBRef.getBufferIdentifier() == Path. llvm-svn: 263061
This commit is contained in:
parent
7f96b39151
commit
2b4df612ec
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user