[llvm] r227442 - Remove unused tokens in the ll lexer.

Sean Silva chisophugis at gmail.com
Thu Jan 29 06:45:10 PST 2015


Author: silvas
Date: Thu Jan 29 08:45:09 2015
New Revision: 227442

URL: http://llvm.org/viewvc/llvm-project?rev=227442&view=rev
Log:
Remove unused tokens in the ll lexer.

Patch by Robin Eklind!

Modified:
    llvm/trunk/lib/AsmParser/LLLexer.cpp
    llvm/trunk/lib/AsmParser/LLToken.h

Modified: llvm/trunk/lib/AsmParser/LLLexer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/AsmParser/LLLexer.cpp?rev=227442&r1=227441&r2=227442&view=diff
==============================================================================
--- llvm/trunk/lib/AsmParser/LLLexer.cpp (original)
+++ llvm/trunk/lib/AsmParser/LLLexer.cpp Thu Jan 29 08:45:09 2015
@@ -241,7 +241,6 @@ lltok::Kind LLLexer::LexToken() {
   case ')': return lltok::rparen;
   case ',': return lltok::comma;
   case '*': return lltok::star;
-  case '\\': return lltok::backslash;
   }
 }
 

Modified: llvm/trunk/lib/AsmParser/LLToken.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/AsmParser/LLToken.h?rev=227442&r1=227441&r2=227442&view=diff
==============================================================================
--- llvm/trunk/lib/AsmParser/LLToken.h (original)
+++ llvm/trunk/lib/AsmParser/LLToken.h Thu Jan 29 08:45:09 2015
@@ -28,9 +28,7 @@ namespace lltok {
     lbrace, rbrace,    // {  }
     less, greater,     // <  >
     lparen, rparen,    // (  )
-    backslash,         // \    (not /)
     exclaim,           // !
-    hash,              // #
 
     kw_x,
     kw_true,    kw_false,





More information about the llvm-commits mailing list