MCAsmLexer.h (208954) | MCAsmLexer.h (210299) |
---|---|
1//===-- llvm/MC/MCAsmLexer.h - Abstract Asm Lexer Interface -----*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 107 unchanged lines hidden (view full) --- 116 117 /// The location and description of the current error 118 SMLoc ErrLoc; 119 std::string Err; 120 121 MCAsmLexer(const MCAsmLexer &); // DO NOT IMPLEMENT 122 void operator=(const MCAsmLexer &); // DO NOT IMPLEMENT 123protected: // Can only create subclasses. | 1//===-- llvm/MC/MCAsmLexer.h - Abstract Asm Lexer Interface -----*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 107 unchanged lines hidden (view full) --- 116 117 /// The location and description of the current error 118 SMLoc ErrLoc; 119 std::string Err; 120 121 MCAsmLexer(const MCAsmLexer &); // DO NOT IMPLEMENT 122 void operator=(const MCAsmLexer &); // DO NOT IMPLEMENT 123protected: // Can only create subclasses. |
124 const char *TokStart; 125 |
|
124 MCAsmLexer(); 125 126 virtual AsmToken LexToken() = 0; 127 128 void SetError(const SMLoc &errLoc, const std::string &err) { 129 ErrLoc = errLoc; 130 Err = err; 131 } --- 4 unchanged lines hidden (view full) --- 136 /// Lex - Consume the next token from the input stream and return it. 137 /// 138 /// The lexer will continuosly return the end-of-file token once the end of 139 /// the main input file has been reached. 140 const AsmToken &Lex() { 141 return CurTok = LexToken(); 142 } 143 | 126 MCAsmLexer(); 127 128 virtual AsmToken LexToken() = 0; 129 130 void SetError(const SMLoc &errLoc, const std::string &err) { 131 ErrLoc = errLoc; 132 Err = err; 133 } --- 4 unchanged lines hidden (view full) --- 138 /// Lex - Consume the next token from the input stream and return it. 139 /// 140 /// The lexer will continuosly return the end-of-file token once the end of 141 /// the main input file has been reached. 142 const AsmToken &Lex() { 143 return CurTok = LexToken(); 144 } 145 |
146 virtual StringRef LexUntilEndOfStatement() = 0; 147 148 /// getLoc - Get the current source location. 149 SMLoc getLoc() const; 150 |
|
144 /// getTok - Get the current (last) lexed token. 145 const AsmToken &getTok() { 146 return CurTok; 147 } 148 149 /// getErrLoc - Get the current error location 150 const SMLoc &getErrLoc() { 151 return ErrLoc; --- 20 unchanged lines hidden --- | 151 /// getTok - Get the current (last) lexed token. 152 const AsmToken &getTok() { 153 return CurTok; 154 } 155 156 /// getErrLoc - Get the current error location 157 const SMLoc &getErrLoc() { 158 return ErrLoc; --- 20 unchanged lines hidden --- |