]> granicus.if.org Git - llvm/commit
[llvm-ar] Reapply Fix relative thin archive path handling
authorOwen Reynolds <gbreynoo@gmail.com>
Tue, 4 Jun 2019 10:13:03 +0000 (10:13 +0000)
committerOwen Reynolds <gbreynoo@gmail.com>
Tue, 4 Jun 2019 10:13:03 +0000 (10:13 +0000)
commit8cd2bd631a9157f996462bccc79d83b794d6c5ba
tree5853653e88e0d4cab7fe03c94043d4c4311e4676
parent11c48647080569b185625c3c7f0577ae571459bf
[llvm-ar] Reapply Fix relative thin archive path handling

Includes a fix for an introduced build failure due to a post c++11 use of std::mismatch.

This fixes some thin archive relative path issues, paths are shortened where possible and paths are output correctly when using the display table command.

Differential Revision: https://reviews.llvm.org/D59491

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362484 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/ArchiveWriter.h
lib/Object/ArchiveWriter.cpp
lib/ToolDrivers/llvm-lib/LibDriver.cpp
test/tools/llvm-ar/reduce-thin-path.test [new file with mode: 0644]
test/tools/llvm-ar/thin-archive.test [new file with mode: 0644]
test/tools/llvm-objcopy/ELF/archive-unknown-members.test
test/tools/llvm-readobj/thin-archive-paths.test
tools/llvm-ar/llvm-ar.cpp