From: Daniel Dunbar Date: Mon, 12 Jul 2010 20:32:33 +0000 (+0000) Subject: MC/AsmLexer: Raise LexUntilEndOfStatement to MCAsmLexer. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=19ad3b88f71fdc0fe0ec19e05bb37c3ef1a42b5b;p=oota-llvm.git MC/AsmLexer: Raise LexUntilEndOfStatement to MCAsmLexer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108189 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/MC/MCParser/AsmLexer.h b/include/llvm/MC/MCParser/AsmLexer.h index 94e24acce09..21878899cac 100644 --- a/include/llvm/MC/MCParser/AsmLexer.h +++ b/include/llvm/MC/MCParser/AsmLexer.h @@ -46,7 +46,7 @@ public: void setBuffer(const MemoryBuffer *buf, const char *ptr = NULL); - StringRef LexUntilEndOfStatement(); + virtual StringRef LexUntilEndOfStatement(); bool isAtStartOfComment(char Char); diff --git a/include/llvm/MC/MCParser/MCAsmLexer.h b/include/llvm/MC/MCParser/MCAsmLexer.h index 9ae9c420ebe..d690e810bd3 100644 --- a/include/llvm/MC/MCParser/MCAsmLexer.h +++ b/include/llvm/MC/MCParser/MCAsmLexer.h @@ -143,6 +143,8 @@ public: return CurTok = LexToken(); } + virtual StringRef LexUntilEndOfStatement() = 0; + /// getLoc - Get the current source location. SMLoc getLoc() const;