[PATCH] D65743: [llvm-ar] Accept file paths with windows format slashes

Owen Reynolds via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 5 06:18:44 PDT 2019


gbreynoo created this revision.
gbreynoo added reviewers: MaskRay, rupprecht.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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.


Repository:
  rL LLVM

https://reviews.llvm.org/D65743

Files:
  llvm/test/tools/llvm-ar/windows-path.test
  llvm/tools/llvm-ar/llvm-ar.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65743.213341.patch
Type: text/x-patch
Size: 3780 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190805/dfc0f604/attachment.bin>


More information about the llvm-commits mailing list