commit | 7bee3271e883acf2d07b48f3796a7cdc158112db | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sat Aug 15 17:53:12 2009 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sat Aug 15 17:53:12 2009 +0000 |
tree | 3096b7eba70e098208bcb6a23cbc02b4b7066c85 | |
parent | 207e1bcf897d1c732f717b9773029651ecc59ab2 [diff] |
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