diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2010-07-12 17:10:00 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2010-07-12 17:10:00 +0000 |
| commit | 83bcaf7e162dd63c57e8620961ef65be5cccedb2 (patch) | |
| tree | e077705db57975e08e7db8cb89a8b54899d634ca /include/llvm/MC | |
| parent | a2696a3dd987920aec2a2cef8a468ab95963e12d (diff) | |
| download | external_llvm-83bcaf7e162dd63c57e8620961ef65be5cccedb2.zip external_llvm-83bcaf7e162dd63c57e8620961ef65be5cccedb2.tar.gz external_llvm-83bcaf7e162dd63c57e8620961ef65be5cccedb2.tar.bz2 | |
MC: Move getLoc() to MCAsmLexer().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108154 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC')
| -rw-r--r-- | include/llvm/MC/MCParser/AsmLexer.h | 4 | ||||
| -rw-r--r-- | include/llvm/MC/MCParser/MCAsmLexer.h | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/include/llvm/MC/MCParser/AsmLexer.h b/include/llvm/MC/MCParser/AsmLexer.h index cf6eefb..94e24ac 100644 --- a/include/llvm/MC/MCParser/AsmLexer.h +++ b/include/llvm/MC/MCParser/AsmLexer.h @@ -33,8 +33,6 @@ class AsmLexer : public MCAsmLexer { const char *CurPtr; const MemoryBuffer *CurBuf; - const char *TokStart; - void operator=(const AsmLexer&); // DO NOT IMPLEMENT AsmLexer(const AsmLexer&); // DO NOT IMPLEMENT @@ -48,8 +46,6 @@ public: void setBuffer(const MemoryBuffer *buf, const char *ptr = NULL); - SMLoc getLoc() const; - StringRef LexUntilEndOfStatement(); bool isAtStartOfComment(char Char); diff --git a/include/llvm/MC/MCParser/MCAsmLexer.h b/include/llvm/MC/MCParser/MCAsmLexer.h index bd1496f..9ae9c42 100644 --- a/include/llvm/MC/MCParser/MCAsmLexer.h +++ b/include/llvm/MC/MCParser/MCAsmLexer.h @@ -121,6 +121,8 @@ class MCAsmLexer { MCAsmLexer(const MCAsmLexer &); // DO NOT IMPLEMENT void operator=(const MCAsmLexer &); // DO NOT IMPLEMENT protected: // Can only create subclasses. + const char *TokStart; + MCAsmLexer(); virtual AsmToken LexToken() = 0; @@ -141,6 +143,9 @@ public: return CurTok = LexToken(); } + /// getLoc - Get the current source location. + SMLoc getLoc() const; + /// getTok - Get the current (last) lexed token. const AsmToken &getTok() { return CurTok; |
