diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-14 22:21:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-14 22:21:20 +0000 |
commit | f29c0b6880c217b65a6a1df18a54e308719e48b3 (patch) | |
tree | bc7ebf089faab00d1eb5efb4b266c26971c0b256 /llvm/tools/llvm-mc/AsmLexer.cpp | |
parent | fdf7031a1a896899cf1bb7f0bd812b2ae4467579 (diff) | |
download | bcm5719-llvm-f29c0b6880c217b65a6a1df18a54e308719e48b3.tar.gz bcm5719-llvm-f29c0b6880c217b65a6a1df18a54e308719e48b3.zip |
Split the TargetAsmParser "ParseInstruction" interface in half:
the new ParseInstruction method just parses and returns a list of
target operands. A new MatchInstruction interface is used to
turn the operand list into an MCInst.
This requires new/deleting all the operands, but it also gives
targets the ability to use polymorphic operands if they want to.
llvm-svn: 93469
Diffstat (limited to 'llvm/tools/llvm-mc/AsmLexer.cpp')
-rw-r--r-- | llvm/tools/llvm-mc/AsmLexer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-mc/AsmLexer.cpp b/llvm/tools/llvm-mc/AsmLexer.cpp index 99055c6855e..ba0d247d46c 100644 --- a/llvm/tools/llvm-mc/AsmLexer.cpp +++ b/llvm/tools/llvm-mc/AsmLexer.cpp @@ -44,7 +44,7 @@ void AsmLexer::PrintMessage(SMLoc Loc, const std::string &Msg, /// ReturnError - Set the error to the specified string at the specified /// location. This is defined to always return AsmToken::Error. AsmToken AsmLexer::ReturnError(const char *Loc, const std::string &Msg) { - SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), Msg, "error"); + PrintMessage(SMLoc::getFromPointer(Loc), Msg, "error"); return AsmToken(AsmToken::Error, StringRef(Loc, 0)); } |