summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2012-09-08 04:32:13 +0000
committerTed Kremenek <kremenek@apple.com>2012-09-08 04:32:13 +0000
commitd94669675be610152d0dd31cbd004fb49c05c0a8 (patch)
treecc3eb0c205060b5a1510c591403b7ba8d69e5eac
parentb724ea5c2e195eda9a16eb114fc2610336a319ac (diff)
downloadbcm5719-llvm-d94669675be610152d0dd31cbd004fb49c05c0a8.tar.gz
bcm5719-llvm-d94669675be610152d0dd31cbd004fb49c05c0a8.zip
Revert "Add -exact-match option to FileCheck to allow clients to do exact matches without using regular expressions."
Turns out I did not need it after all. If we find a use for it in the future, we can resurrect it. llvm-svn: 163457
-rw-r--r--llvm/utils/FileCheck/FileCheck.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/utils/FileCheck/FileCheck.cpp b/llvm/utils/FileCheck/FileCheck.cpp
index 0805504ad17..33f04ce6477 100644
--- a/llvm/utils/FileCheck/FileCheck.cpp
+++ b/llvm/utils/FileCheck/FileCheck.cpp
@@ -45,10 +45,6 @@ static cl::opt<bool>
NoCanonicalizeWhiteSpace("strict-whitespace",
cl::desc("Do not treat all horizontal whitespace as equivalent"));
-static cl::opt<bool>
-NoRegex("exact-match",
- cl::desc("Look for exact matches without using regular expressions"));
-
//===----------------------------------------------------------------------===//
// Pattern Handling Code.
//===----------------------------------------------------------------------===//
@@ -128,7 +124,7 @@ bool Pattern::ParsePattern(StringRef PatternStr, SourceMgr &SM) {
}
// Check to see if this is a fixed string, or if it has regex pieces.
- if (PatternStr.size() < 2 || NoRegex ||
+ if (PatternStr.size() < 2 ||
(PatternStr.find("{{") == StringRef::npos &&
PatternStr.find("[[") == StringRef::npos)) {
FixedStr = PatternStr;
OpenPOWER on IntegriCloud