From 81f46d9ce1888308b33336f9bea72147430da36b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 26 Sep 2009 21:27:04 +0000 Subject: 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 --- utils/FileCheck/FileCheck.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/FileCheck') 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 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. -- cgit v1.1