From 8e4fdef6ccb12deeb22e75b666094e1154f721a6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 6 Sep 2010 03:12:27 +0000 Subject: [PATCH] same bug, another place. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113141 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/StringMatcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/TableGen/StringMatcher.cpp b/utils/TableGen/StringMatcher.cpp index ccd01d253ff..f9b5924069c 100644 --- a/utils/TableGen/StringMatcher.cpp +++ b/utils/TableGen/StringMatcher.cpp @@ -127,7 +127,7 @@ void StringMatcher::Emit() const { for (std::map >::iterator LI = MatchesByLength.begin(), E = MatchesByLength.end(); LI != E; ++LI) { OS << " case " << LI->first << ":\t // " << LI->second.size() - << " strings to match.\n"; + << " string" << (LI->second.size() == 1 ? "" : "s") << " to match.\n"; if (EmitStringMatcherForChar(LI->second, 0, 0)) OS << " break;\n"; }