diff options
Diffstat (limited to 'utils/TableGen/Record.h')
-rw-r--r-- | utils/TableGen/Record.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h index 5eb07eb1e9..00b77305cd 100644 --- a/utils/TableGen/Record.h +++ b/utils/TableGen/Record.h @@ -1195,6 +1195,17 @@ struct LessRecordFieldName { } }; + +class TGError { + TGLoc Loc; + std::string Message; +public: + TGError(TGLoc loc, const std::string &message) : Loc(loc), Message(message) {} + + TGLoc getLoc() const { return Loc; } + const std::string &getMessage() const { return Message; } +}; + std::ostream &operator<<(std::ostream &OS, const RecordKeeper &RK); |