Replace regex match with rfind (NFCish)
authorAdrian Prantl <aprantl@apple.com>
Tue, 8 Oct 2019 16:29:39 +0000 (16:29 +0000)
committerAdrian Prantl <aprantl@apple.com>
Tue, 8 Oct 2019 16:29:39 +0000 (16:29 +0000)
commitea6377505435f0a6c9deb154a38dc6960d28726e
treeeebce67753362a50cac11602b2dace1634e81a6e
parent917b8df0e531d4b2ecb9c9bc7370a75905587bbc
Replace regex match with rfind (NFCish)

This change is mostly performance-neutral since our regex engine is
fast, but it's IMHO slightly more readable.  Also, matching matching
parenthesis is not a great match for regular expressions.

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

llvm-svn: 374082
lldb/include/lldb/Symbol/ObjectFile.h
lldb/source/Symbol/ObjectFile.cpp