summaryrefslogtreecommitdiff
path: root/utils/TableGen/TableGen.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/TableGen.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/TableGen.cpp')
-rw-r--r--utils/TableGen/TableGen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/TableGen.cpp b/utils/TableGen/TableGen.cpp
index 038cde2cb7..fb80302c1e 100644
--- a/utils/TableGen/TableGen.cpp
+++ b/utils/TableGen/TableGen.cpp
@@ -127,7 +127,7 @@ RecordKeeper llvm::Records;
static SourceMgr SrcMgr;
void llvm::PrintError(SMLoc ErrorLoc, const std::string &Msg) {
- SrcMgr.PrintMessage(ErrorLoc, Msg);
+ SrcMgr.PrintMessage(ErrorLoc, Msg, "error");
}