summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-09-06 03:12:27 +0000
committerChris Lattner <sabre@nondot.org>2010-09-06 03:12:27 +0000
commit8e4fdef6ccb12deeb22e75b666094e1154f721a6 (patch)
tree43d5761a612658d4abc2572c114bbe74a1c42ed3 /utils
parent6d7c307a088664c007a0b7e801d2376cd15a9da0 (diff)
downloadllvm-8e4fdef6ccb12deeb22e75b666094e1154f721a6.tar.gz
llvm-8e4fdef6ccb12deeb22e75b666094e1154f721a6.tar.bz2
llvm-8e4fdef6ccb12deeb22e75b666094e1154f721a6.tar.xz
same bug, another place.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113141 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/StringMatcher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/StringMatcher.cpp b/utils/TableGen/StringMatcher.cpp
index ccd01d253f..f9b5924069 100644
--- a/utils/TableGen/StringMatcher.cpp
+++ b/utils/TableGen/StringMatcher.cpp
@@ -127,7 +127,7 @@ void StringMatcher::Emit() const {
for (std::map<unsigned, std::vector<const StringPair*> >::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";
}