diff options
author | Chris Lattner <sabre@nondot.org> | 2009-06-21 21:22:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-06-21 21:22:11 +0000 |
commit | 2adc9e739c95db68ef625daa6fe7a4ce90d00106 (patch) | |
tree | cbb545c0eb8b838d6e10aa68172eeda08bdaf461 /llvm/tools/llvm-mc/AsmLexer.cpp | |
parent | 36e0212c163c931f11970192788f8b24d2489daa (diff) | |
download | bcm5719-llvm-2adc9e739c95db68ef625daa6fe7a4ce90d00106.tar.gz bcm5719-llvm-2adc9e739c95db68ef625daa6fe7a4ce90d00106.zip |
rename SourceMgr::PrintError to PrintMessage.
llvm-svn: 73861
Diffstat (limited to 'llvm/tools/llvm-mc/AsmLexer.cpp')
-rw-r--r-- | llvm/tools/llvm-mc/AsmLexer.cpp | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/llvm/tools/llvm-mc/AsmLexer.cpp b/llvm/tools/llvm-mc/AsmLexer.cpp index cf6a4a8c124..740215b683e 100644 --- a/llvm/tools/llvm-mc/AsmLexer.cpp +++ b/llvm/tools/llvm-mc/AsmLexer.cpp @@ -29,18 +29,14 @@ SMLoc AsmLexer::getLoc() const { 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 @@ asmtok::TokKind AsmLexer::LexQuote() { CurChar = getNextChar(); } - if (CurChar == EOF) { - PrintError(TokStart, "unterminated string constant"); - return asmtok::Eof; - } + if (CurChar == EOF) + return ReturnError(TokStart, "unterminated string constant"); CurChar = getNextChar(); } |