diff options
author | Eric Christopher <echristo@apple.com> | 2011-06-21 22:10:57 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-06-21 22:10:57 +0000 |
commit | 1312ca8be679b332bb712328085e50121d4b94ec (patch) | |
tree | 5dbe0d6d97c1610206f85b6e20e649c802ede401 /lib/Target | |
parent | 71c38e33594dfe3cbaf712e5585e02f81ed5d5ca (diff) | |
download | external_llvm-1312ca8be679b332bb712328085e50121d4b94ec.zip external_llvm-1312ca8be679b332bb712328085e50121d4b94ec.tar.gz external_llvm-1312ca8be679b332bb712328085e50121d4b94ec.tar.bz2 |
Handle the memory-ness of all U+ ARM constraints.
Noticed on inspection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133553 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/ARM/ARMISelLowering.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp index dc193e0..4ae4af1 100644 --- a/lib/Target/ARM/ARMISelLowering.cpp +++ b/lib/Target/ARM/ARMISelLowering.cpp @@ -7379,9 +7379,12 @@ ARMTargetLowering::getConstraintType(const std::string &Constraint) const { case 'l': return C_RegisterClass; case 'w': return C_RegisterClass; } - } else { - if (Constraint == "Uv") - return C_Memory; + } else if (Constraint.size() == 2) { + switch (Constraint[0]) { + default: break; + // All 'U+' constraints are addresses. + case 'U': return C_Memory; + } } return TargetLowering::getConstraintType(Constraint); } |