aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2013-05-31 15:58:45 +0000
committerTim Northover <tnorthover@apple.com>2013-05-31 15:58:45 +0000
commitee5e24cb3e987c74d4dce146b4f78e83fb2b56a8 (patch)
treeb0d3cf2447cbd1d0a4544c4b4d26daa33ac192f1 /lib
parent242c9f4615feeee2fbdd1f29cd9a8e8ffd43c075 (diff)
downloadexternal_llvm-ee5e24cb3e987c74d4dce146b4f78e83fb2b56a8.zip
external_llvm-ee5e24cb3e987c74d4dce146b4f78e83fb2b56a8.tar.gz
external_llvm-ee5e24cb3e987c74d4dce146b4f78e83fb2b56a8.tar.bz2
ARM: permit upper-case BE/LE on setend instruction
Patch by Amaury de la Vieuville. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183012 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/ARM/AsmParser/ARMAsmParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index 9fa389a..c287150 100644
--- a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -3624,7 +3624,7 @@ parseSetEndImm(SmallVectorImpl<MCParsedAsmOperand*> &Operands) {
Error(S, "'be' or 'le' operand expected");
return MatchOperand_ParseFail;
}
- int Val = StringSwitch<int>(Tok.getString())
+ int Val = StringSwitch<int>(Tok.getString().lower())
.Case("be", 1)
.Case("le", 0)
.Default(-1);