mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
Make SMDiagnostic a little more sane. Instead of passing around note/warning/error as a
string, pass it around as an enum. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142107 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user