mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Give the exclamation point a name instead of a number.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119759 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -766,6 +766,7 @@ static std::string getEnumNameForToken(StringRef Str) {
|
|||||||
case '*': Res += "_STAR_"; break;
|
case '*': Res += "_STAR_"; break;
|
||||||
case '%': Res += "_PCT_"; break;
|
case '%': Res += "_PCT_"; break;
|
||||||
case ':': Res += "_COLON_"; break;
|
case ':': Res += "_COLON_"; break;
|
||||||
|
case '!': Res += "_EXCLAIM_"; break;
|
||||||
default:
|
default:
|
||||||
if (isalnum(*it))
|
if (isalnum(*it))
|
||||||
Res += *it;
|
Res += *it;
|
||||||
|
Reference in New Issue
Block a user