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 | 0b6a44afb92fed0365b6709c1f46b0c5e49e1a72 (patch) | |
tree | 2b3578c678b2c74d3d10599641bae25731f3139a /utils/TableGen/TGParser.h | |
parent | 109c22c06232358597afec5d8b7a6b6fd24e19b1 (diff) | |
download | external_llvm-0b6a44afb92fed0365b6709c1f46b0c5e49e1a72.tar.gz external_llvm-0b6a44afb92fed0365b6709c1f46b0c5e49e1a72.tar.bz2 external_llvm-0b6a44afb92fed0365b6709c1f46b0c5e49e1a72.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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133568 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/TGParser.h')
-rw-r--r-- | utils/TableGen/TGParser.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/TableGen/TGParser.h b/utils/TableGen/TGParser.h index 419a99b13f..94a1c2b2b2 100644 --- a/utils/TableGen/TGParser.h +++ b/utils/TableGen/TGParser.h @@ -15,6 +15,7 @@ #define TGPARSER_H #include "TGLexer.h" +#include "Error.h" #include "llvm/ADT/Twine.h" #include "llvm/Support/SourceMgr.h" #include <map> @@ -60,7 +61,7 @@ public: bool ParseFile(); bool Error(SMLoc L, const Twine &Msg) const { - Lex.PrintError(L, Msg); + PrintError(L, Msg); return true; } bool TokError(const Twine &Msg) const { |