diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-06-21 22:55:50 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-06-21 22:55:50 +0000 |
commit | 797cff050437d8bd9db53bd1de1e54e168155ae3 (patch) | |
tree | ba1ec250171f2626012be8efeb34c08a1b72096b /llvm/utils/TableGen/Record.h | |
parent | d1955e78b4d5f2d6c592d10046bf9d23f804b304 (diff) | |
download | bcm5719-llvm-797cff050437d8bd9db53bd1de1e54e168155ae3.tar.gz bcm5719-llvm-797cff050437d8bd9db53bd1de1e54e168155ae3.zip |
Consolidate some TableGen diagnostic helper functions.
TableGen had diagnostic printers sprinkled about in a few places. Pull them
together into a single location in Error.cpp.
llvm-svn: 133568
Diffstat (limited to 'llvm/utils/TableGen/Record.h')
-rw-r--r-- | llvm/utils/TableGen/Record.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/llvm/utils/TableGen/Record.h b/llvm/utils/TableGen/Record.h index 522b719803c..c8905ccde79 100644 --- a/llvm/utils/TableGen/Record.h +++ b/llvm/utils/TableGen/Record.h @@ -1486,22 +1486,8 @@ struct LessRecordFieldName { } }; - -class TGError { - SMLoc Loc; - std::string Message; -public: - TGError(SMLoc loc, const std::string &message) : Loc(loc), Message(message) {} - - SMLoc getLoc() const { return Loc; } - const std::string &getMessage() const { return Message; } -}; - - raw_ostream &operator<<(raw_ostream &OS, const RecordKeeper &RK); -void PrintError(SMLoc ErrorLoc, const Twine &Msg); - } // End llvm namespace #endif |