Remove unused tokens in the ll lexer.
authorSean Silva <chisophugis@gmail.com>
Thu, 29 Jan 2015 14:45:09 +0000 (14:45 +0000)
committerSean Silva <chisophugis@gmail.com>
Thu, 29 Jan 2015 14:45:09 +0000 (14:45 +0000)
Patch by Robin Eklind!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227442 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AsmParser/LLLexer.cpp
lib/AsmParser/LLToken.h

index de5db1a4093d02f64b1f73897c7238d40cd50312..1a85852d5f8a4225ea399c496e07fc36c343fcca 100644 (file)
@@ -241,7 +241,6 @@ lltok::Kind LLLexer::LexToken() {
   case ')': return lltok::rparen;
   case ',': return lltok::comma;
   case '*': return lltok::star;
-  case '\\': return lltok::backslash;
   }
 }
 
index 4fb01824d9b5d87fc7c316d089230fae6bd6963c..5b3463bf4abecd7eb054f90d1e8b092fd868ad3f 100644 (file)
@@ -28,9 +28,7 @@ namespace lltok {
     lbrace, rbrace,    // {  }
     less, greater,     // <  >
     lparen, rparen,    // (  )
-    backslash,         // \    (not /)
     exclaim,           // !
-    hash,              // #
 
     kw_x,
     kw_true,    kw_false,