diff options
author | Chris Lattner <sabre@nondot.org> | 2011-10-16 05:43:57 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-10-16 05:43:57 +0000 |
commit | 03b80a402745ba2ba3b23d9753a19d995ce40671 (patch) | |
tree | 616c6d2f91b0588408cde5ae12328bef29eb9075 /llvm/lib/TableGen/Error.cpp | |
parent | a3a06810836e42098c37baba492297e30bdf65c4 (diff) | |
download | bcm5719-llvm-03b80a402745ba2ba3b23d9753a19d995ce40671.tar.gz bcm5719-llvm-03b80a402745ba2ba3b23d9753a19d995ce40671.zip |
Make SMDiagnostic a little more sane. Instead of passing around note/warning/error as a
string, pass it around as an enum.
llvm-svn: 142107
Diffstat (limited to 'llvm/lib/TableGen/Error.cpp')
-rw-r--r-- | llvm/lib/TableGen/Error.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/TableGen/Error.cpp b/llvm/lib/TableGen/Error.cpp index 5b2cbbfec4b..5071ee77ac4 100644 --- a/llvm/lib/TableGen/Error.cpp +++ b/llvm/lib/TableGen/Error.cpp @@ -21,11 +21,11 @@ namespace llvm { SourceMgr SrcMgr; void PrintError(SMLoc ErrorLoc, const Twine &Msg) { - SrcMgr.PrintMessage(ErrorLoc, Msg, "error"); + SrcMgr.PrintMessage(ErrorLoc, SourceMgr::DK_Error, Msg); } void PrintError(const char *Loc, const Twine &Msg) { - SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), Msg, "error"); + SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Error, Msg); } void PrintError(const Twine &Msg) { |