OSDN Git Service

[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)
commitabce0e8bf5ab339e134cf8b821855e1a8bfc52a3
treecdf205de5ce3ffc3d6706a9122e2c9a2c7d1d187
parentf71ec6c9f145548357caaed4da9a806c5c2c2b11
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355114 91177308-0d34-0410-b5e6-96231b3b80d8
tools/dsymutil/BinaryHolder.cpp