mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-13 09:33:50 +00:00
avoid copying MCAsmInfo by value, add an (extremely low prio) fixme.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82911 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8ff95de83c
commit
cec545097c
@ -243,10 +243,8 @@ StringRef AsmLexer::LexUntilEndOfStatement() {
|
||||
}
|
||||
|
||||
bool AsmLexer::isAtStartOfComment(char Char) {
|
||||
for (const char *p = MAI.getCommentString(); *p != 0; ++p)
|
||||
if (Char == *p)
|
||||
return true;
|
||||
return false;
|
||||
// FIXME: This won't work for multi-character comment indicators like "//".
|
||||
return Char == *MAI.getCommentString();
|
||||
}
|
||||
|
||||
AsmToken AsmLexer::LexToken() {
|
||||
|
@ -30,7 +30,7 @@ class MCAsmInfo;
|
||||
/// AsmLexer - Lexer class for assembly files.
|
||||
class AsmLexer : public MCAsmLexer {
|
||||
SourceMgr &SrcMgr;
|
||||
const MCAsmInfo MAI;
|
||||
const MCAsmInfo &MAI;
|
||||
|
||||
const char *CurPtr;
|
||||
const MemoryBuffer *CurBuf;
|
||||
|
Loading…
x
Reference in New Issue
Block a user