summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/TGParser.h
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-06-21 22:55:50 +0000
committerJim Grosbach <grosbach@apple.com>2011-06-21 22:55:50 +0000
commit797cff050437d8bd9db53bd1de1e54e168155ae3 (patch)
treeba1ec250171f2626012be8efeb34c08a1b72096b /llvm/utils/TableGen/TGParser.h
parentd1955e78b4d5f2d6c592d10046bf9d23f804b304 (diff)
downloadbcm5719-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/TGParser.h')
-rw-r--r--llvm/utils/TableGen/TGParser.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/TGParser.h b/llvm/utils/TableGen/TGParser.h
index 419a99b13ff..94a1c2b2b25 100644
--- a/llvm/utils/TableGen/TGParser.h
+++ b/llvm/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 {
OpenPOWER on IntegriCloud