mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Move state var to private class member.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139697 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dcd9996241
commit
6148225b95
@ -32,6 +32,7 @@ class AsmLexer : public MCAsmLexer {
|
||||
|
||||
const char *CurPtr;
|
||||
const MemoryBuffer *CurBuf;
|
||||
bool isAtStartOfLine;
|
||||
|
||||
void operator=(const AsmLexer&); // DO NOT IMPLEMENT
|
||||
AsmLexer(const AsmLexer&); // DO NOT IMPLEMENT
|
||||
|
@ -24,6 +24,7 @@ using namespace llvm;
|
||||
AsmLexer::AsmLexer(const MCAsmInfo &_MAI) : MAI(_MAI) {
|
||||
CurBuf = NULL;
|
||||
CurPtr = NULL;
|
||||
isAtStartOfLine = true;
|
||||
}
|
||||
|
||||
AsmLexer::~AsmLexer() {
|
||||
@ -356,7 +357,6 @@ bool AsmLexer::isAtStatementSeparator(const char *Ptr) {
|
||||
}
|
||||
|
||||
AsmToken AsmLexer::LexToken() {
|
||||
static bool isAtStartOfLine = true;
|
||||
TokStart = CurPtr;
|
||||
// This always consumes at least one character.
|
||||
int CurChar = getNextChar();
|
||||
|
Loading…
x
Reference in New Issue
Block a user