From 4e380354a969b26e9c695195d8ac7ffd9dab6f85 Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Wed, 26 Oct 2011 21:14:08 +0000 Subject: [PATCH] ARM parse parenthesized expressions for label references. Partial fix for rdar://10348687. llvm-svn: 143063 --- llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index a278f6fe57c6..99f619cb1194 100644 --- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp @@ -3691,6 +3691,7 @@ bool ARMAsmParser::parseOperand(SmallVectorImpl &Operands, // Fall though for the Identifier case that is not a register or a // special name. } + case AsmToken::LParen: // parenthesized expressions like (_strcmp-4) case AsmToken::Integer: // things like 1f and 2b as a branch targets case AsmToken::Dot: { // . as a branch target // This was not a register so parse other operands that start with an