diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-06-30 00:49:23 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-06-30 00:49:23 +0000 |
commit | c9dc78ae4075af8f081b90edc7f372ca5b513b21 (patch) | |
tree | 574ed24e0d22a15ba2816f697235877a2d9cbf84 /llvm/utils/TableGen/TGLexer.cpp | |
parent | 8e66e0bab4c14b79ae7dcff7a447c5d3f6a4eae4 (diff) | |
download | bcm5719-llvm-c9dc78ae4075af8f081b90edc7f372ca5b513b21.tar.gz bcm5719-llvm-c9dc78ae4075af8f081b90edc7f372ca5b513b21.zip |
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): ...
llvm-svn: 74489
Diffstat (limited to 'llvm/utils/TableGen/TGLexer.cpp')
-rw-r--r-- | llvm/utils/TableGen/TGLexer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/TGLexer.cpp b/llvm/utils/TableGen/TGLexer.cpp index 6fe8d821e5f..04bbf381520 100644 --- a/llvm/utils/TableGen/TGLexer.cpp +++ b/llvm/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"); } |