diff options
Diffstat (limited to 'utils/TableGen/TGLexer.h')
-rw-r--r-- | utils/TableGen/TGLexer.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/TableGen/TGLexer.h b/utils/TableGen/TGLexer.h index 59e9fa0ef5..245dd41461 100644 --- a/utils/TableGen/TGLexer.h +++ b/utils/TableGen/TGLexer.h @@ -23,6 +23,7 @@ namespace llvm { class MemoryBuffer; class TGSourceMgr; +class TGLoc; namespace tgtok { enum TokKind { @@ -99,10 +100,10 @@ public: return CurIntVal; } - typedef const char* LocTy; - LocTy getLoc() const { return TokStart; } + TGLoc getLoc() const; - void PrintError(LocTy Loc, const std::string &Msg) const; + void PrintError(const char *Loc, const std::string &Msg) const; + void PrintError(TGLoc Loc, const std::string &Msg) const; private: /// LexToken - Read the next token and return its code. |