From: Jim Grosbach Date: Tue, 1 Nov 2011 22:38:31 +0000 (+0000) Subject: ARM label operands can be quoted. X-Git-Tag: android-x86-6.0-r1~263^2~472 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=6284afc293c8f6e84dffab8731aa9e679d437745;p=android-x86%2Fexternal-llvm.git ARM label operands can be quoted. For example, labels from Objective-C sources. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143511 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index 757eccbb644..0abfabefc72 100644 --- a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp @@ -3810,6 +3810,7 @@ bool ARMAsmParser::parseOperand(SmallVectorImpl &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.