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/AsmLexer.cpp b/tools/llvm-mc/AsmLexer.cpp
index cf6a4a8..740215b 100644
--- a/tools/llvm-mc/AsmLexer.cpp
+++ b/tools/llvm-mc/AsmLexer.cpp
@@ -29,18 +29,14 @@
   return SMLoc::getFromPointer(TokStart);
 }
 
-void AsmLexer::PrintError(const char *Loc, const std::string &Msg) const {
-  SrcMgr.PrintError(SMLoc::getFromPointer(Loc), Msg);
-}
-
-void AsmLexer::PrintError(SMLoc Loc, const std::string &Msg) const {
-  SrcMgr.PrintError(Loc, Msg);
+void AsmLexer::PrintMessage(SMLoc Loc, const std::string &Msg) const {
+  SrcMgr.PrintMessage(Loc, Msg);
 }
 
 /// ReturnError - Set the error to the specified string at the specified
 /// location.  This is defined to always return asmtok::Error.
 asmtok::TokKind AsmLexer::ReturnError(const char *Loc, const std::string &Msg) {
-  PrintError(Loc, Msg);
+  SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), Msg);
   return asmtok::Error;
 }
 
@@ -203,10 +199,8 @@
       CurChar = getNextChar();
     }
     
-    if (CurChar == EOF) {
-      PrintError(TokStart, "unterminated string constant");
-      return asmtok::Eof;
-    }
+    if (CurChar == EOF)
+      return ReturnError(TokStart, "unterminated string constant");
 
     CurChar = getNextChar();
   }