summaryrefslogtreecommitdiff
path: root/utils/FileCheck
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
commit4f50517577bb74fb4d2a18ad613fd05aa48f564d (patch)
tree5ec8d5d7d445a2a88720a6a3fa2ba44e34cb931e /utils/FileCheck
parent0d651e0c9d47a459b91755ccf711119f5b085dc5 (diff)
downloadllvm-4f50517577bb74fb4d2a18ad613fd05aa48f564d.tar.gz
llvm-4f50517577bb74fb4d2a18ad613fd05aa48f564d.tar.bz2
llvm-4f50517577bb74fb4d2a18ad613fd05aa48f564d.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163457 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/FileCheck')
-rw-r--r--utils/FileCheck/FileCheck.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/utils/FileCheck/FileCheck.cpp b/utils/FileCheck/FileCheck.cpp
index 0805504ad1..33f04ce647 100644
--- a/utils/FileCheck/FileCheck.cpp
+++ b/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;