aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-05-27 22:08:38 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-05-27 22:08:38 +0000
commitc2cb3704c1cfe80a3466f222662c690828a89593 (patch)
tree69e342e3863eb9bdff2fbf1e2094f119c214dfed /lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
parentd0b7ecfb65c215957a7f6d406665893ba3968fff (diff)
downloadexternal_llvm-c2cb3704c1cfe80a3466f222662c690828a89593.zip
external_llvm-c2cb3704c1cfe80a3466f222662c690828a89593.tar.gz
external_llvm-c2cb3704c1cfe80a3466f222662c690828a89593.tar.bz2
llvm can't correctly support 'H', 'Q' and 'R' modifiers. Just mark it an error.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104891 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp')
-rw-r--r--lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp20
1 files changed, 2 insertions, 18 deletions
diff --git a/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp b/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
index 093f599..fc73938 100644
--- a/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
+++ b/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
@@ -1064,27 +1064,11 @@ bool ARMAsmPrinter::PrintAsmOperand(const MachineInstr *MI, unsigned OpNum,
printOperand(MI, OpNum, O);
return false;
case 'Q':
- // Print the least significant half of a register pair.
- if (TM.getTargetData()->isBigEndian())
- break;
- printOperand(MI, OpNum, O);
- return false;
case 'R':
- // Print the most significant half of a register pair.
- if (TM.getTargetData()->isLittleEndian())
- break;
- printOperand(MI, OpNum, O);
- return false;
case 'H':
- break;
- }
- // Print the second half of a register pair (for 'Q', 'R' or 'H').
- // Verify that this operand has two consecutive registers.
- if (!MI->getOperand(OpNum).isReg() ||
- OpNum+1 == MI->getNumOperands() ||
- !MI->getOperand(OpNum+1).isReg())
+ llvm_unreachable("llvm does not support 'Q', 'R', and 'H' modifiers!");
return true;
- ++OpNum;
+ }
}
printOperand(MI, OpNum, O);