ARM label operands can be quoted.
For example, labels from Objective-C sources. llvm-svn: 143511
This commit is contained in:
parent
7f1f3bd868
commit
5c6b6346bc
|
@ -3810,6 +3810,7 @@ bool ARMAsmParser::parseOperand(SmallVectorImpl<MCParsedAsmOperand*> &Operands,
|
|||
}
|
||||
case AsmToken::LParen: // parenthesized expressions like (_strcmp-4)
|
||||
case AsmToken::Integer: // things like 1f and 2b as a branch targets
|
||||
case AsmToken::String: // quoted label names.
|
||||
case AsmToken::Dot: { // . as a branch target
|
||||
// This was not a register so parse other operands that start with an
|
||||
// identifier (like labels) as expressions and create them as immediates.
|
||||
|
|
Loading…
Reference in New Issue