ARM uses '.' in their tokens. Give it a name instead of a numeric value.
authorBill Wendling <isanbard@gmail.com>
Sat, 22 Jan 2011 09:44:32 +0000 (09:44 +0000)
committerBill Wendling <isanbard@gmail.com>
Sat, 22 Jan 2011 09:44:32 +0000 (09:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124026 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/AsmMatcherEmitter.cpp

index b9031b1561c8c224e5324c98a63f58e6b55604f3..082b1c5f3e9b8a3f70fca85bd8093e36789e6cda 100644 (file)
@@ -776,6 +776,7 @@ static std::string getEnumNameForToken(StringRef Str) {
     case '%': Res += "_PCT_"; break;
     case ':': Res += "_COLON_"; break;
     case '!': Res += "_EXCLAIM_"; break;
+    case '.': Res += "_DOT_"; break;
     default:
       if (isalnum(*it))
         Res += *it;