]> granicus.if.org Git - llvm/commit
[llvm-ar] Accept file paths with windows format slashes
authorOwen Reynolds <gbreynoo@gmail.com>
Mon, 12 Aug 2019 14:00:28 +0000 (14:00 +0000)
committerOwen Reynolds <gbreynoo@gmail.com>
Mon, 12 Aug 2019 14:00:28 +0000 (14:00 +0000)
commit38dae407317b11aa6bbc433698a5b1fb775adb91
tree8c4e43f59d36f736d863f4e022319df1a92f38a3
parentb342539dcd23ffffb3ab6f0b1905f549007af953
[llvm-ar] Accept file paths with windows format slashes

The internal representation of llvm-ar archives uses linux style slashes
for paths, no matter the OS. In the case of windows this meant file
paths input intending to match existing members would only match if
linux style slashes where used. This change allows either slash
direction to be input by the user.

This change includes removing an unnecessary call to normalisePath and
moving the call of another.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368573 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-ar/windows-path.test [new file with mode: 0644]
tools/llvm-ar/llvm-ar.cpp