ARM label operands can be quoted.
authorJim Grosbach <grosbach@apple.com>
Tue, 1 Nov 2011 22:38:31 +0000 (22:38 +0000)
committerJim Grosbach <grosbach@apple.com>
Tue, 1 Nov 2011 22:38:31 +0000 (22:38 +0000)
For example, labels from Objective-C sources.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143511 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/AsmParser/ARMAsmParser.cpp

index 757eccbb6441a53a4581444fd6e9a7775110f487..0abfabefc72113e8750807351d492d3c1b69e04e 100644 (file)
@@ -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.