forked from OSchip/llvm-project
avoid copying MCAsmInfo by value, add an (extremely low prio) fixme.
llvm-svn: 82911
This commit is contained in:
parent
52d78a518a
commit
10a1cfd0f9
|
@ -243,10 +243,8 @@ StringRef AsmLexer::LexUntilEndOfStatement() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AsmLexer::isAtStartOfComment(char Char) {
|
bool AsmLexer::isAtStartOfComment(char Char) {
|
||||||
for (const char *p = MAI.getCommentString(); *p != 0; ++p)
|
// FIXME: This won't work for multi-character comment indicators like "//".
|
||||||
if (Char == *p)
|
return Char == *MAI.getCommentString();
|
||||||
return true;
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
AsmToken AsmLexer::LexToken() {
|
AsmToken AsmLexer::LexToken() {
|
||||||
|
|
|
@ -30,7 +30,7 @@ class MCAsmInfo;
|
||||||
/// AsmLexer - Lexer class for assembly files.
|
/// AsmLexer - Lexer class for assembly files.
|
||||||
class AsmLexer : public MCAsmLexer {
|
class AsmLexer : public MCAsmLexer {
|
||||||
SourceMgr &SrcMgr;
|
SourceMgr &SrcMgr;
|
||||||
const MCAsmInfo MAI;
|
const MCAsmInfo &MAI;
|
||||||
|
|
||||||
const char *CurPtr;
|
const char *CurPtr;
|
||||||
const MemoryBuffer *CurBuf;
|
const MemoryBuffer *CurBuf;
|
||||||
|
|
Loading…
Reference in New Issue