[llvm-commits] [llvm] r139232 - /llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
Jim Grosbach
grosbach at apple.com
Wed Sep 7 09:06:04 PDT 2011
Author: grosbach
Date: Wed Sep 7 11:06:04 2011
New Revision: 139232
URL: http://llvm.org/viewvc/llvm-project?rev=139232&view=rev
Log:
Better diagnostic location information for mnemonic suffices.
Modified:
llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
Modified: llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp?rev=139232&r1=139231&r2=139232&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp (original)
+++ llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp Wed Sep 7 11:06:04 2011
@@ -3233,8 +3233,10 @@
// 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.
More information about the llvm-commits
mailing list