Cache AllowAtInIdentifier as class variable in AsmLexer
authorDavid Peixotto <dpeixott@codeaurora.org>
Fri, 6 Dec 2013 23:05:33 +0000 (23:05 +0000)
committerDavid Peixotto <dpeixott@codeaurora.org>
Fri, 6 Dec 2013 23:05:33 +0000 (23:05 +0000)
commit7db4f8d9d84371e16577e826ec2d60ba15e293db
tree91dd9f3558b2d6d5549b0298edb71d887a0ae3a4
parent74999cfe0c35984eac653ce0d643542f24ce25a5
Cache AllowAtInIdentifier as class variable in AsmLexer

This commit caches the value of the AllowAtInIdentifier variable as
a class variable in AsmLexer. We do this to avoid repeated MAI
queries and string comparisons each time we lex an identifier.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196622 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCParser/AsmLexer.h
lib/MC/MCParser/AsmLexer.cpp