summaryrefslogtreecommitdiff
path: root/utils/FileCheck
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-26 21:27:04 +0000
committerChris Lattner <sabre@nondot.org>2009-09-26 21:27:04 +0000
commit81f46d9ce1888308b33336f9bea72147430da36b (patch)
treef3c232cbd37d132f5dc3c530151bd860335125bb /utils/FileCheck
parent282098be8463035143bd8444796e6a58b0205c29 (diff)
downloadllvm-81f46d9ce1888308b33336f9bea72147430da36b.tar.gz
llvm-81f46d9ce1888308b33336f9bea72147430da36b.tar.bz2
llvm-81f46d9ce1888308b33336f9bea72147430da36b.tar.xz
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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/FileCheck/FileCheck.cpp b/utils/FileCheck/FileCheck.cpp
index 8e63a9961a..4c5999bb63 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.