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!

llvm-svn: 227442

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

index de5db1a..1a85852 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 4fb0182..5b3463b 100644 (file)
@@ -28,9 +28,7 @@ namespace lltok {
     lbrace, rbrace,    // {  }
     less, greater,     // <  >
     lparen, rparen,    // (  )
-    backslash,         // \    (not /)
     exclaim,           // !
-    hash,              // #
 
     kw_x,
     kw_true,    kw_false,