summaryrefslogtreecommitdiffstats
path: root/llvm/utils
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
commit37d8015dc1e09de96e32be45a70cb53b9fe118db (patch)
tree3d3f3952739dce15ec9fa1f6f7fefc9cb0e58fa1 /llvm/utils
parenta26b471f1d0f0f057df492235213515e7a95f031 (diff)
downloadbcm5719-llvm-37d8015dc1e09de96e32be45a70cb53b9fe118db.tar.gz
bcm5719-llvm-37d8015dc1e09de96e32be45a70cb53b9fe118db.zip
remove support for "NoSub" from regex. It seems like a minor optimization
and makes the API more annoying. Add a Regex::getNumMatches() method. llvm-svn: 82877
Diffstat (limited to 'llvm/utils')
-rw-r--r--llvm/utils/FileCheck/FileCheck.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/FileCheck/FileCheck.cpp b/llvm/utils/FileCheck/FileCheck.cpp
index 8e63a9961a0..4c5999bb63a 100644
--- a/llvm/utils/FileCheck/FileCheck.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud