From 19ad3b88f71fdc0fe0ec19e05bb37c3ef1a42b5b Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Mon, 12 Jul 2010 20:32:33 +0000 Subject: [PATCH] MC/AsmLexer: Raise LexUntilEndOfStatement to MCAsmLexer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108189 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/MC/MCParser/AsmLexer.h | 2 +- include/llvm/MC/MCParser/MCAsmLexer.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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; -- 2.34.1