diff options
author | David Peixotto <dpeixott@codeaurora.org> | 2013-12-06 23:05:33 +0000 |
---|---|---|
committer | David Peixotto <dpeixott@codeaurora.org> | 2013-12-06 23:05:33 +0000 |
commit | 7db4f8d9d84371e16577e826ec2d60ba15e293db (patch) | |
tree | 91dd9f3558b2d6d5549b0298edb71d887a0ae3a4 /include/llvm | |
parent | 74999cfe0c35984eac653ce0d643542f24ce25a5 (diff) | |
download | llvm-7db4f8d9d84371e16577e826ec2d60ba15e293db.tar.gz llvm-7db4f8d9d84371e16577e826ec2d60ba15e293db.tar.bz2 llvm-7db4f8d9d84371e16577e826ec2d60ba15e293db.tar.xz |
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
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/MC/MCParser/AsmLexer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/MC/MCParser/AsmLexer.h b/include/llvm/MC/MCParser/AsmLexer.h index 1b3ab57751..a97b450a46 100644 --- a/include/llvm/MC/MCParser/AsmLexer.h +++ b/include/llvm/MC/MCParser/AsmLexer.h @@ -30,6 +30,7 @@ class AsmLexer : public MCAsmLexer { const char *CurPtr; const MemoryBuffer *CurBuf; bool isAtStartOfLine; + bool AllowAtInIdentifier; // Cached here to avoid repeated MAI query. void operator=(const AsmLexer&) LLVM_DELETED_FUNCTION; AsmLexer(const AsmLexer&) LLVM_DELETED_FUNCTION; |