Give the exclamation point a name instead of a number.

llvm-svn: 119759
This commit is contained in:
Bill Wendling 2010-11-18 23:36:54 +00:00
parent 835a88cb15
commit 4a08e563d7
1 changed files with 1 additions and 0 deletions

View File

@ -766,6 +766,7 @@ static std::string getEnumNameForToken(StringRef Str) {
case '*': Res += "_STAR_"; break;
case '%': Res += "_PCT_"; break;
case ':': Res += "_COLON_"; break;
case '!': Res += "_EXCLAIM_"; break;
default:
if (isalnum(*it))
Res += *it;