[dsymutil] Use rfind for paths with parentheses
authorJonas Devlieghere <jonas@devlieghere.com>
Thu, 28 Feb 2019 18:46:04 +0000 (18:46 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Thu, 28 Feb 2019 18:46:04 +0000 (18:46 +0000)
commitf9b0b9a5044b3ddcea00ebb97e6755d1109ceead
tree39b055289d8790b33ac8e49841ebfe5fce79c7e4
parentce65261faefb764a5f8eced161b787f2e1b64474
[dsymutil] Use rfind for paths with parentheses

Dsymutil gets library member information is through the ambiguous
/path/to/archive.a(member.o). The current logic we use would get
confused by additional parentheses. Using rfind mitigates this issue.

llvm-svn: 355114
llvm/tools/dsymutil/BinaryHolder.cpp