rename SourceMgr::PrintError to PrintMessage.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73861 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/llvm-mc/AsmParser.cpp b/tools/llvm-mc/AsmParser.cpp
index 9c0b4ab..1940d76 100644
--- a/tools/llvm-mc/AsmParser.cpp
+++ b/tools/llvm-mc/AsmParser.cpp
@@ -16,6 +16,17 @@
 #include "llvm/Support/raw_ostream.h"
 using namespace llvm;
 
+bool AsmParser::Error(SMLoc L, const char *Msg) {
+  Lexer.PrintMessage(L, Msg);
+  return true;
+}
+
+bool AsmParser::TokError(const char *Msg) {
+  Lexer.PrintMessage(Lexer.getLoc(), Msg);
+  return true;
+}
+
+
 bool AsmParser::Run() {
   // Prime the lexer.
   Lexer.Lex();
@@ -34,8 +45,7 @@
 bool AsmParser::ParseStatement() {
   switch (Lexer.getKind()) {
   default:
-    Lexer.PrintError(Lexer.getLoc(), "unexpected token at start of statement");
-    return true;
+    return TokError("unexpected token at start of statement");
   case asmtok::EndOfStatement:
     Lexer.Lex();
     return false;