mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
avoid copying MCAsmInfo by value, add an (extremely low prio) fixme.
llvm-svn: 82911
This commit is contained in:
parent
a23802520a
commit
80349d5875
@ -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…
Reference in New Issue
Block a user