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/AsmParser.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/AsmParser.cpp')
| -rw-r--r-- | llvm/tools/llvm-mc/AsmParser.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/llvm/tools/llvm-mc/AsmParser.cpp b/llvm/tools/llvm-mc/AsmParser.cpp index 9c0b4abb076..1940d761894 100644 --- a/llvm/tools/llvm-mc/AsmParser.cpp +++ b/llvm/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::Run() { 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; |

