summaryrefslogtreecommitdiffstats
path: root/llvm
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
commit4e380354a969b26e9c695195d8ac7ffd9dab6f85 (patch)
tree6ad4f2cc4e0420a4ae12bf24148fb7c091cd913a /llvm
parent66393c127d0e1f8f1cb4c9b878c669fcd1457db7 (diff)
downloadbcm5719-llvm-4e380354a969b26e9c695195d8ac7ffd9dab6f85.tar.gz
bcm5719-llvm-4e380354a969b26e9c695195d8ac7ffd9dab6f85.zip
ARM parse parenthesized expressions for label references.
Partial fix for rdar://10348687. llvm-svn: 143063
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index a278f6fe57c..99f619cb119 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<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
OpenPOWER on IntegriCloud