projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68b859f
)
Better diagnostic location information for mnemonic suffices.
author
Jim Grosbach
<grosbach@apple.com>
Wed, 7 Sep 2011 16:06:04 +0000
(16:06 +0000)
committer
Jim Grosbach
<grosbach@apple.com>
Wed, 7 Sep 2011 16:06:04 +0000
(16:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139232
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index b468d9fe476222732c7ce8b734fdb944bd375447..1aa5563e5c768a0291915badc6373767d3f6e3a7 100644
(file)
--- a/
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@
-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.