summaryrefslogtreecommitdiff
path: root/utils/TableGen/TGLexer.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-06-30 00:49:23 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-06-30 00:49:23 +0000
commit3fb7683bec8c8edb24e80c95f3b0668c6ecc0ae6 (patch)
tree814b198e69a8c9b1b21c8f1281d501e7a01adde0 /utils/TableGen/TGLexer.cpp
parent2bc29dc0bcb3c1441477a062e4a5cffff175c8ca (diff)
downloadllvm-3fb7683bec8c8edb24e80c95f3b0668c6ecc0ae6.tar.gz
llvm-3fb7683bec8c8edb24e80c95f3b0668c6ecc0ae6.tar.bz2
llvm-3fb7683bec8c8edb24e80c95f3b0668c6ecc0ae6.tar.xz
Normalize SourceMgr messages.
- Don't print "Parsing" in front of every message. - Take additional "type" argument which is prepended to the message (with ": ") if given. - Update clients to print errors (warnings) as: <filename>:<line number>: error(warning): ... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74489 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/TGLexer.cpp')
-rw-r--r--utils/TableGen/TGLexer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/TGLexer.cpp b/utils/TableGen/TGLexer.cpp
index 6fe8d821e5..04bbf38152 100644
--- a/utils/TableGen/TGLexer.cpp
+++ b/utils/TableGen/TGLexer.cpp
@@ -44,11 +44,11 @@ tgtok::TokKind TGLexer::ReturnError(const char *Loc, const std::string &Msg) {
void TGLexer::PrintError(const char *Loc, const std::string &Msg) const {
- SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), Msg);
+ SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), Msg, "error");
}
void TGLexer::PrintError(SMLoc Loc, const std::string &Msg) const {
- SrcMgr.PrintMessage(Loc, Msg);
+ SrcMgr.PrintMessage(Loc, Msg, "error");
}