diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-07-18 18:31:45 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-07-18 18:31:45 +0000 |
commit | d8a1845c312302d6a558727519f9810e1951a0fc (patch) | |
tree | 60fc15c1044ac9065a80df1a5e2f5c1cc7c85146 /llvm/lib/MC/MCParser/AsmParser.cpp | |
parent | ba6e354b61c8a4601c25436430737b514e702413 (diff) | |
download | bcm5719-llvm-d8a1845c312302d6a558727519f9810e1951a0fc.tar.gz bcm5719-llvm-d8a1845c312302d6a558727519f9810e1951a0fc.zip |
MC/AsmParser: Use Error() instead of calling PrintMessage() directly.
llvm-svn: 108648
Diffstat (limited to 'llvm/lib/MC/MCParser/AsmParser.cpp')
-rw-r--r-- | llvm/lib/MC/MCParser/AsmParser.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp index c9ac95a7833..8ae4fcb514b 100644 --- a/llvm/lib/MC/MCParser/AsmParser.cpp +++ b/llvm/lib/MC/MCParser/AsmParser.cpp @@ -249,7 +249,7 @@ const AsmToken &AsmParser::Lex() { } if (tok->is(AsmToken::Error)) - PrintMessage(Lexer.getErrLoc(), Lexer.getErr(), "error"); + Error(Lexer.getErrLoc(), Lexer.getErr()); return *tok; } @@ -1395,9 +1395,7 @@ bool AsmParser::ParseDirectiveInclude() { // Attempt to switch the lexer to the included file before consuming the end // of statement to avoid losing it when we switch. if (EnterIncludeFile(Filename)) { - PrintMessage(IncludeLoc, - "Could not find include file '" + Filename + "'", - "error"); + Error(IncludeLoc, "Could not find include file '" + Filename + "'"); return true; } |