mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-20 10:38:46 +00:00
Better diagnostic location information for mnemonic suffices.
llvm-svn: 139232
This commit is contained in:
parent
8df5170d0d
commit
7969f880c0
@ -3233,8 +3233,10 @@ bool ARMAsmParser::ParseInstruction(StringRef Name, SMLoc NameLoc,
|
||||
// For now, we're only parsing Thumb1 (for the most part), so
|
||||
// just ignore ".n" qualifiers. We'll use them to restrict
|
||||
// matching when we do Thumb2.
|
||||
if (ExtraToken != ".n")
|
||||
Operands.push_back(ARMOperand::CreateToken(ExtraToken, NameLoc));
|
||||
if (ExtraToken != ".n") {
|
||||
SMLoc Loc = SMLoc::getFromPointer(NameLoc.getPointer() + Start);
|
||||
Operands.push_back(ARMOperand::CreateToken(ExtraToken, Loc));
|
||||
}
|
||||
}
|
||||
|
||||
// Read the remaining operands.
|
||||
|
Loading…
Reference in New Issue
Block a user