prune #includes in TargetAsmParser.h

Pass in SMLoc of instr opcode into ParseInstruction.
Make AsmToken be a class, not a struct.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93457 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2010-01-14 21:32:45 +00:00
parent 9f82da7cbf
commit f007e853e2
6 changed files with 17 additions and 11 deletions

View File

@ -711,7 +711,7 @@ bool AsmParser::ParseStatement() {
}
MCInst Inst;
if (getTargetParser().ParseInstruction(IDVal, Inst))
if (getTargetParser().ParseInstruction(IDVal, IDLoc, Inst))
return true;
if (Lexer.isNot(AsmToken::EndOfStatement))