diff options
author | Chris Lattner <sabre@nondot.org> | 2010-09-06 03:12:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-09-06 03:12:27 +0000 |
commit | 8e4fdef6ccb12deeb22e75b666094e1154f721a6 (patch) | |
tree | 43d5761a612658d4abc2572c114bbe74a1c42ed3 /utils/TableGen/StringMatcher.cpp | |
parent | 6d7c307a088664c007a0b7e801d2376cd15a9da0 (diff) |
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/TableGen/StringMatcher.cpp')
-rw-r--r-- | utils/TableGen/StringMatcher.cpp | 2 |
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"; } |