diff options
author | Chris Lattner <sabre@nondot.org> | 2009-09-26 21:27:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-09-26 21:27:04 +0000 |
commit | 81f46d9ce1888308b33336f9bea72147430da36b (patch) | |
tree | f3c232cbd37d132f5dc3c530151bd860335125bb /utils/FileCheck | |
parent | 282098be8463035143bd8444796e6a58b0205c29 (diff) | |
download | external_llvm-81f46d9ce1888308b33336f9bea72147430da36b.zip external_llvm-81f46d9ce1888308b33336f9bea72147430da36b.tar.gz external_llvm-81f46d9ce1888308b33336f9bea72147430da36b.tar.bz2 |
remove support for "NoSub" from regex. It seems like a minor optimization
and makes the API more annoying. Add a Regex::getNumMatches() method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82877 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/FileCheck')
-rw-r--r-- | utils/FileCheck/FileCheck.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/FileCheck/FileCheck.cpp b/utils/FileCheck/FileCheck.cpp index 8e63a99..4c5999b 100644 --- a/utils/FileCheck/FileCheck.cpp +++ b/utils/FileCheck/FileCheck.cpp @@ -168,7 +168,7 @@ size_t Pattern::Match(StringRef Buffer, size_t &MatchLen) const { // Regex match. SmallVector<StringRef, 4> MatchInfo; - if (!Regex(RegExStr, Regex::Sub|Regex::Newline).match(Buffer, &MatchInfo)) + if (!Regex(RegExStr, Regex::Newline).match(Buffer, &MatchInfo)) return StringRef::npos; // Successful regex match. |