aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-10-26 21:14:08 +0000
committerJim Grosbach <grosbach@apple.com>2011-10-26 21:14:08 +0000
commit758a519a22b469ce8e2b8d0bf7a72813e87710d4 (patch)
treeef76ae6be264a8f54efccad26d93a712ecf8652b /lib
parente840e88239cf92a065cbf5f5b9c7d18bc139c0e1 (diff)
downloadexternal_llvm-758a519a22b469ce8e2b8d0bf7a72813e87710d4.zip
external_llvm-758a519a22b469ce8e2b8d0bf7a72813e87710d4.tar.gz
external_llvm-758a519a22b469ce8e2b8d0bf7a72813e87710d4.tar.bz2
ARM parse parenthesized expressions for label references.
Partial fix for rdar://10348687. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143063 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/ARM/AsmParser/ARMAsmParser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index a278f6f..99f619c 100644
--- a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -3691,6 +3691,7 @@ bool ARMAsmParser::parseOperand(SmallVectorImpl<MCParsedAsmOperand*> &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