rewrite FindStringInBuffer to use an explicit loop instead of
authorChris Lattner <sabre@nondot.org>
Sat, 15 Aug 2009 17:53:12 +0000 (17:53 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 15 Aug 2009 17:53:12 +0000 (17:53 +0000)
commit7bee3271e883acf2d07b48f3796a7cdc158112db
tree3096b7eba70e098208bcb6a23cbc02b4b7066c85
parent207e1bcf897d1c732f717b9773029651ecc59ab2
rewrite FindStringInBuffer to use an explicit loop instead of
trying to wrap strstr which is just too inconvenient.  Make it
use a StringRef to avoid ".c_str()" calls.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79120 91177308-0d34-0410-b5e6-96231b3b80d8
utils/FileCheck/FileCheck.cpp