summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMISelLowering.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-03-25 02:14:49 +0000
committerChris Lattner <sabre@nondot.org>2007-03-25 02:14:49 +0000
commitd685514e2e70c1d117272dd02096113e21691070 (patch)
tree53e9bee81c8215e9de990df914d4e87259d7d576 /llvm/lib/Target/ARM/ARMISelLowering.cpp
parentd8aad61d4db37c2edb0b0dc59e860a2678d757cf (diff)
downloadbcm5719-llvm-d685514e2e70c1d117272dd02096113e21691070.tar.gz
bcm5719-llvm-d685514e2e70c1d117272dd02096113e21691070.zip
switch TargetLowering::getConstraintType to take the entire constraint,
not just the first letter. No functionality change. llvm-svn: 35322
Diffstat (limited to 'llvm/lib/Target/ARM/ARMISelLowering.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index 2521e3b1d03..cb3d923351f 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -1550,12 +1550,14 @@ void ARMTargetLowering::computeMaskedBitsForTargetNode(const SDOperand Op,
/// getConstraintType - Given a constraint letter, return the type of
/// constraint it is for this target.
ARMTargetLowering::ConstraintType
-ARMTargetLowering::getConstraintType(char ConstraintLetter) const {
- switch (ConstraintLetter) {
- case 'l':
- return C_RegisterClass;
- default: return TargetLowering::getConstraintType(ConstraintLetter);
+ARMTargetLowering::getConstraintType(const std::string &Constraint) const {
+ if (Constraint.size() == 1) {
+ switch (Constraint[0]) {
+ default: break;
+ case 'l': return C_RegisterClass;
+ }
}
+ return TargetLowering::getConstraintType(Constraint);
}
std::pair<unsigned, const TargetRegisterClass*>
OpenPOWER on IntegriCloud