1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

filecheck should not match a \n with a .

llvm-svn: 82758
This commit is contained in:
Chris Lattner 2009-09-25 06:47:09 +00:00
parent a777d67d34
commit 2bf0d0ca42

View File

@ -50,7 +50,6 @@ class PatternChunk {
public:
PatternChunk(StringRef S, bool isRE) : Str(S), isRegEx(isRE) {}
size_t Match(StringRef Buffer, size_t &MatchLen) const {
if (!isRegEx) {
// Fixed string match.
@ -60,7 +59,7 @@ public:
// Regex match.
SmallVector<StringRef, 4> MatchInfo;
if (!Regex(Str, Regex::Sub).match(Buffer, &MatchInfo))
if (!Regex(Str, Regex::Sub|Regex::Newline).match(Buffer, &MatchInfo))
return StringRef::npos;
// Successful regex match.
@ -70,7 +69,6 @@ public:
MatchLen = FullMatch.size();
return FullMatch.data()-Buffer.data();
}
};
class Pattern {