X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=utils%2FTableGen%2FTGLexer.h;h=0e67f680557dffd1ca96c8782391e50205e29d53;hb=41474baac839da410302950305722cb0e026a094;hp=b4fa97cc0864cb3114237ab4268b16e29bab7d72;hpb=3060910e290949a9ac5eda8726d030790c4d60ff;p=oota-llvm.git diff --git a/utils/TableGen/TGLexer.h b/utils/TableGen/TGLexer.h index b4fa97cc086..0e67f680557 100644 --- a/utils/TableGen/TGLexer.h +++ b/utils/TableGen/TGLexer.h @@ -14,6 +14,7 @@ #ifndef TGLEXER_H #define TGLEXER_H +#include "llvm/Support/DataTypes.h" #include #include #include @@ -62,7 +63,7 @@ class TGLexer { const char *TokStart; tgtok::TokKind CurCode; std::string CurStrVal; // This is valid for ID, STRVAL, VARNAME, CODEFRAGMENT - int CurIntVal; // This is valid for INTVAL. + int64_t CurIntVal; // This is valid for INTVAL. /// IncludeRec / IncludeStack - This captures the current set of include /// directives we are nested within. @@ -98,7 +99,7 @@ public: "This token doesn't have a string value"); return CurStrVal; } - int getCurIntVal() const { + int64_t getCurIntVal() const { assert(CurCode == tgtok::IntVal && "This token isn't an integer"); return CurIntVal; }