diff options
Diffstat (limited to 'utils/TableGen/TGLexer.h')
-rw-r--r-- | utils/TableGen/TGLexer.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/utils/TableGen/TGLexer.h b/utils/TableGen/TGLexer.h index 517b81a496..dab68c3aab 100644 --- a/utils/TableGen/TGLexer.h +++ b/utils/TableGen/TGLexer.h @@ -40,8 +40,6 @@ class TGLexer { // IncludeDirectories - This is the list of directories we should search for // include files in. std::vector<std::string> IncludeDirectories; - - std::string TheError; public: TGLexer(MemoryBuffer *StartBuf); ~TGLexer(); @@ -52,11 +50,14 @@ public: int LexToken(); - const std::string getError() const { return TheError; } + void PrintError(const char *Loc, const std::string &Msg) const; + + std::ostream &err() const; + void PrintIncludeStack(std::ostream &OS) const; - std::ostream &err(); - void PrintIncludeStack(std::ostream &OS); private: + int ReturnError(const char *Loc, const std::string &Msg); + int getNextChar(); void SkipBCPLComment(); bool SkipCComment(); |