forked from OSchip/llvm-project
Give the exclamation point a name instead of a number.
llvm-svn: 119759
This commit is contained in:
parent
835a88cb15
commit
4a08e563d7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue