diff options
author | Chris Lattner <sabre@nondot.org> | 2007-03-25 02:14:49 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-03-25 02:14:49 +0000 |
commit | 4234f57fa02b1f04a9f52a7b3c2aa22d32ac521c (patch) | |
tree | be85ddfcc73a327c28ecfa0d4d081a06a7467869 /lib/Target/PowerPC/PPCISelLowering.cpp | |
parent | 2b81207b4b2bafa912851e8935271aa2faf82cfe (diff) | |
download | llvm-4234f57fa02b1f04a9f52a7b3c2aa22d32ac521c.tar.gz llvm-4234f57fa02b1f04a9f52a7b3c2aa22d32ac521c.tar.bz2 llvm-4234f57fa02b1f04a9f52a7b3c2aa22d32ac521c.tar.xz |
switch TargetLowering::getConstraintType to take the entire constraint,
not just the first letter. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35322 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCISelLowering.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPCISelLowering.cpp | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp index 54d6c4f87b..adfe3b70a1 100644 --- a/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/lib/Target/PowerPC/PPCISelLowering.cpp @@ -3105,20 +3105,22 @@ void PPCTargetLowering::computeMaskedBitsForTargetNode(const SDOperand Op, } -/// getConstraintType - Given a constraint letter, return the type of +/// getConstraintType - Given a constraint, return the type of /// constraint it is for this target. PPCTargetLowering::ConstraintType -PPCTargetLowering::getConstraintType(char ConstraintLetter) const { - switch (ConstraintLetter) { - default: break; - case 'b': - case 'r': - case 'f': - case 'v': - case 'y': - return C_RegisterClass; - } - return TargetLowering::getConstraintType(ConstraintLetter); +PPCTargetLowering::getConstraintType(const std::string &Constraint) const { + if (Constraint.size() == 1) { + switch (Constraint[0]) { + default: break; + case 'b': + case 'r': + case 'f': + case 'v': + case 'y': + return C_RegisterClass; + } + } + return TargetLowering::getConstraintType(Constraint); } std::pair<unsigned, const TargetRegisterClass*> |